summaryrefslogtreecommitdiff
path: root/roles/acmetool/cert/tasks/main.yml
blob: e97aab8473eaf7a04cfb86bca3b8cb7c9ef8779a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
---
- name: add acmetool desired file
  vars:
    acmetool_cert_satisfy:
      satisfy:
        names: "{{ acmetool_cert_hostnames | default([acmetool_cert_name]) }}"
  ansible.builtin.copy:
    content: "{{ acmetool_cert_config | default({}) | combine(acmetool_cert_satisfy) | to_nice_yaml }}"
    dest: "/var/lib/acme/desired/{{ acmetool_cert_name }}"
  notify: reconcile acmetool