with_items -> loop et adaptation nouvelle infra

This commit is contained in:
2021-11-30 15:05:35 +01:00
parent 6d279c75bb
commit db9f049e68
3 changed files with 10 additions and 14 deletions

View File

@@ -10,7 +10,6 @@
name: "{{ apache_package_name}}"
state: latest
- name: conf httpd
tags: httpd
notify: reload httpd
@@ -43,7 +42,15 @@
file:
name: "{{ item.documentroot }}"
state: directory
with_items:
loop:
- "{{ apache_vhosts }}"
- name: create documentroot/Private
tags: httpd
file:
name: "{{ item.documentroot }}/Private"
state: directory
loop:
- "{{ apache_vhosts }}"
- name: create index file
@@ -52,5 +59,5 @@
src: index.html
dest: "{{ item.documentroot }}/index.html"
mode: 0644
with_items:
loop:
- "{{ apache_vhosts }}"