Folder loop
This commit is contained in:
parent
80b42a89b6
commit
869d20a78f
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user