aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/nginx-custom-configs/tasks/main.yml
blob: 6abd05f81f57d9e8393908456609cfc2aca8bd96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- name: Write nginx custom configs
  copy:
    src: "{{ item }}"
    dest: "/etc/nginx/conf.d/{{ item | basename }}"
    owner: root
    group: root
    mode: 0644
  with_fileglob:
    - "files/{{ inventory_hostname }}/nginx/*"
#TODO - allow files to be stored on a by-group basis, rather than a per-host basis
#    - "files/{{ ansible_role_names }}/nginx/*"
  notify: restart-nginx