summaryrefslogtreecommitdiff
path: root/roles/acmetool/cert/tasks/main.yml
blob: c5d5348e929ddf303ceaef8cdaecce6e5fcc5742 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- name: add acmetool desired file
  copy:
    content: "{{ item | to_nice_yaml }}"
    dest: "/var/lib/acme/desired/{{ acmetool_cert_name }}"
  with_items:
  - satisfy:
      names: "{{ acmetool_cert_hostnames | default([acmetool_cert_name]) }}"
  loop_control:
    label: "{{ item.satisfy.names | join(', ') }}"

- name: reconcile acmetool
  systemd:
    name: acmetool
    state: started