From d11a24b7f0edf309a2bbd5687acbea8bc1e012cc Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 12 Oct 2019 03:01:11 +0200 Subject: added generic nginx role --- roles/acmetool/cert/tasks/main.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'roles/acmetool') diff --git a/roles/acmetool/cert/tasks/main.yml b/roles/acmetool/cert/tasks/main.yml index c2f778f6..8f9f6d41 100644 --- a/roles/acmetool/cert/tasks/main.yml +++ b/roles/acmetool/cert/tasks/main.yml @@ -1,10 +1,9 @@ - name: add acmetool desired file - loop: - - satisfy: + vars: + acmetool_desired: + satisfy: names: "{{ acmetool_cert_hostnames | default([acmetool_cert_name]) }}" - loop_control: - label: "{{ item.satisfy.names | join(', ') }}" copy: - content: "{{ item | to_nice_yaml }}" + content: "{{ acmetool_desired | to_nice_yaml }}" dest: "/var/lib/acme/desired/{{ acmetool_cert_name }}" notify: reconcile acmetool -- cgit v1.2.3