diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-05-25 03:12:47 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-05-25 03:12:47 +0200 |
commit | f8ab68e40dda046171de02df6a7c12514f570bf8 (patch) | |
tree | abe825df189af419216eb66c857cb3f8f089578f /roles/acmetool/cert/tasks | |
parent | loop vs. with - the beginnings... (diff) |
replace all with_items with loop
Diffstat (limited to 'roles/acmetool/cert/tasks')
-rw-r--r-- | roles/acmetool/cert/tasks/main.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/roles/acmetool/cert/tasks/main.yml b/roles/acmetool/cert/tasks/main.yml index ddb29236..c2f778f6 100644 --- a/roles/acmetool/cert/tasks/main.yml +++ b/roles/acmetool/cert/tasks/main.yml @@ -1,10 +1,10 @@ - name: add acmetool desired file + loop: + - satisfy: + names: "{{ acmetool_cert_hostnames | default([acmetool_cert_name]) }}" + loop_control: + label: "{{ item.satisfy.names | join(', ') }}" 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(', ') }}" notify: reconcile acmetool |