lab-ansible/roles/apps/tasks/extra_tasks/nginx.yml

20 lines
515 B
YAML
Raw Normal View History

2023-11-08 21:30:41 +00:00
# vim: ft=yaml.ansible
# code: language=ansible
---
- name: Create subfolder for nginx config files
ansible.builtin.file:
name: "{{ apps_data_root }}/nginx/data/conf.d"
owner: root
mode: u=rwx,g=rx,o=rx
state: directory
- name: Copy nginx config for {{ app }}
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