add loop
This commit is contained in:
parent
6e7a0dc228
commit
9236311180
2 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
when:
|
||||
- "'ssl' in item"
|
||||
- item['ssl']
|
||||
with_items: "{{ vhosts }}"
|
||||
loop: "{{ vhosts }}"
|
||||
|
||||
- name: Start Apache
|
||||
service:
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
stat:
|
||||
path: "/etc/letsencrypt/archive/{{ item.vhostname }}"
|
||||
register: certificate_folder
|
||||
loop: "{{ vhosts }}"
|
||||
|
||||
- name: Ensure certificate is created
|
||||
include_tasks: configure_certificate.yml
|
||||
|
|
Loading…
Reference in a new issue