Folder loop

This commit is contained in:
Mike Holloway 2025-12-06 20:04:48 -05:00
parent 80b42a89b6
commit 869d20a78f

View File

@ -1,23 +1,16 @@
- name: Container Path data State directory
- name: Container directory paths
file:
path: "/home/{{ user.name }}/webroot"
state: directory
owner: "100999"
group: "100999"
- name: Container Path certs State directory
file:
path: "/home/{{ user.name }}/nginx/certs"
state: directory
owner: "100999"
group: "100999"
- name: Container Path html State directory
file:
path: "/home/{{ user.name }}/nginx/html"
path: "/home/{{ user.name }}/{{ subdir }}"
state: directory
owner: "100999"
group: "100999"
with_items:
- "webroot"
- "certs"
- "html"
- "vhost.d"
loop_control:
loop_var: "subdir"
- name: Cointainer Path web directory
file: