diff options
-rw-r--r-- | playbooks/emc-acme.yml | 27 | ||||
-rw-r--r-- | roles/acmetool-cert/tasks/main.yml | 12 |
2 files changed, 39 insertions, 0 deletions
diff --git a/playbooks/emc-acme.yml b/playbooks/emc-acme.yml new file mode 100644 index 00000000..6d478a2d --- /dev/null +++ b/playbooks/emc-acme.yml @@ -0,0 +1,27 @@ +--- +- name: create certificates for host + hosts: emc-xx:helene + roles: + - role: acmetool + - role: acmetool-cert + acmetool_cert_name: "{{ inventory_hostname }}" + acmetool_cert_hostnames: + - "{{ inventory_hostname }}.spreadspace.org" + +- name: create certificates for names running on emc-00 + hosts: emc-00 + roles: + - role: acmetool-cert + acmetool_cert_name: emc + acmetool_cert_hostnames: + - stream.elevate.at + - elevate-live.spreadspace.org + - elevate-stats.spreadspace.org + +- name: create certificates for names running on helene + hosts: helene + roles: + - role: acmetool-cert + acmetool_cert_name: emc + acmetool_cert_hostnames: + - elevate-feed.spreadspace.org diff --git a/roles/acmetool-cert/tasks/main.yml b/roles/acmetool-cert/tasks/main.yml new file mode 100644 index 00000000..a24ea2ed --- /dev/null +++ b/roles/acmetool-cert/tasks/main.yml @@ -0,0 +1,12 @@ +- 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 }}" + +- name: reconcile acmetool + systemd: + name: acmetool + state: started |