summaryrefslogtreecommitdiff
path: root/roles/acmetool/cert/tasks
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-05-25 03:12:47 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-05-25 03:12:47 +0200
commitf8ab68e40dda046171de02df6a7c12514f570bf8 (patch)
treeabe825df189af419216eb66c857cb3f8f089578f /roles/acmetool/cert/tasks
parentloop 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.yml10
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