summaryrefslogtreecommitdiff
path: root/playbooks/roles/nginx-proxy/tasks/main.yml
blob: 9c140720bc144ab7d57057d43cd3ae3305f4c6ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---

- name: Build nginx-proxy compose dirs
  ansible.builtin.file:
    state: directory
    dest: '/etc/docker/compose/nginx-proxy/{{ item.path }}'
  with_filetree: '../templates'
  when: item.state == 'directory'

- name: Build nginx-proxy compose files
  ansible.builtin.template:
    src: '{{ item.src }}'
    dest: '/etc/docker/compose/nginx-proxy/{{ item.path }}'
  with_filetree: '../templates'
  when: item.state == 'file'
  notify:
    - (Re)start nginx-proxy