2023-11-08 21:30:41 +00:00
|
|
|
# vim: ft=yaml.ansible
|
|
|
|
# code: language=ansible
|
|
|
|
---
|
2023-12-31 14:25:13 +00:00
|
|
|
- name: Create subdirectory for NGINX config files
|
2023-11-08 21:30:41 +00:00
|
|
|
ansible.builtin.file:
|
2023-11-13 20:31:09 +00:00
|
|
|
path: "{{ apps_data_root }}/nginx/data/conf.d"
|
2023-11-08 21:30:41 +00:00
|
|
|
owner: root
|
|
|
|
mode: u=rwx,g=rx,o=rx
|
|
|
|
state: directory
|
|
|
|
|
2023-12-31 14:25:13 +00:00
|
|
|
- name: Copy NGINX configs
|
2023-11-08 21:30:41 +00:00
|
|
|
ansible.builtin.template:
|
2023-12-31 14:25:13 +00:00
|
|
|
src: nginx/conf.d/{{ config }}.conf.j2
|
|
|
|
dest: "{{ apps_data_root }}/nginx/data/conf.d/{{ config }}.conf"
|
2023-11-08 21:30:41 +00:00
|
|
|
owner: root
|
|
|
|
mode: u=rw,g=r,o=r
|
2023-12-31 14:25:13 +00:00
|
|
|
loop: "{{ ['http', apps_proxied] | flatten }}"
|
2023-11-08 21:30:41 +00:00
|
|
|
loop_control:
|
2023-12-31 14:25:13 +00:00
|
|
|
loop_var: config
|