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:
|
when:
|
||||||
- "'ssl' in item"
|
- "'ssl' in item"
|
||||||
- item['ssl']
|
- item['ssl']
|
||||||
with_items: "{{ vhosts }}"
|
loop: "{{ vhosts }}"
|
||||||
|
|
||||||
- name: Start Apache
|
- name: Start Apache
|
||||||
service:
|
service:
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
stat:
|
stat:
|
||||||
path: "/etc/letsencrypt/archive/{{ item.vhostname }}"
|
path: "/etc/letsencrypt/archive/{{ item.vhostname }}"
|
||||||
register: certificate_folder
|
register: certificate_folder
|
||||||
|
loop: "{{ vhosts }}"
|
||||||
|
|
||||||
- name: Ensure certificate is created
|
- name: Ensure certificate is created
|
||||||
include_tasks: configure_certificate.yml
|
include_tasks: configure_certificate.yml
|
||||||
|
|
Loading…
Reference in a new issue