22 lines
609 B
YAML
22 lines
609 B
YAML
---
|
|
- 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'
|
|
|
|
- name: Daemon-reload and enable nginx-proxy
|
|
ansible.builtin.systemd_service:
|
|
state: started
|
|
enabled: true
|
|
daemon_reload: true
|
|
name: docker-compose@nginx-proxy
|