summaryrefslogtreecommitdiff
path: root/roles/x509/acmetool/cert/tasks/main.yml
blob: 09980dad5ededaa972db4139eb8122c3f000dc4c (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]) }}"
  copy:
    content: "{{ acmetool_cert_config | default({}) | combine(acmetool_cert_satisfy) | to_nice_yaml }}"
    dest: "/var/lib/acme/desired/{{ acmetool_cert_name }}"
  notify: reconcile acmetool