35 lines
796 B
YAML
35 lines
796 B
YAML
- name: Container directory paths
|
|
file:
|
|
path: "/home/{{ user.name }}/{{ subdir }}"
|
|
state: directory
|
|
owner: "100999"
|
|
group: "100999"
|
|
with_items:
|
|
- "webroot"
|
|
- "nginx/certs"
|
|
- "nginx/html"
|
|
- "nginx/vhost.d"
|
|
loop_control:
|
|
loop_var: "subdir"
|
|
|
|
|
|
- name: Create proxy container files
|
|
copy:
|
|
src: "{{ proxy_file }}"
|
|
dest: "/home/{{ user.name }}/nginx/vhost.d/{{ inventory_hostname }}"
|
|
owner: "{{ user.name }}"
|
|
group: "{{ user.name }}"
|
|
with_items:
|
|
- "nextcloud.vhost.conf"
|
|
- "nextcloud.vhost.conf_location"
|
|
loop_control:
|
|
loop_var: "proxy_file"
|
|
|
|
- name: Create Compose File
|
|
template:
|
|
src: "docker-compose.yml.j2"
|
|
dest: "/home/{{ user.name }}/docker-compose.yml"
|
|
owner: "{{ user.name }}"
|
|
group: "{{ user.name }}"
|
|
|