lab-ansible/roles/apps/tasks/extra_tasks/nginx.yml
2023-12-28 00:07:21 +01:00

20 lines
505 B
YAML

# vim: ft=yaml.ansible
# code: language=ansible
---
- name: Create subdirectory for nginx config files
ansible.builtin.file:
path: "{{ apps_data_root }}/nginx/data/conf.d"
owner: root
mode: u=rwx,g=rx,o=rx
state: directory
- name: Copy nginx configs
ansible.builtin.template:
src: nginx/conf.d/{{ app }}.conf.j2
dest: "{{ apps_data_root }}/nginx/data/conf.d/{{ app }}.conf"
owner: root
mode: u=rw,g=r,o=r
loop: "{{ apps_proxied }}"
loop_control:
loop_var: app