forked from data.coop/ansible
26 lines
580 B
YAML
26 lines
580 B
YAML
# vim: ft=yaml.ansible
|
|
---
|
|
- name: create nginx-proxy volume folders
|
|
file:
|
|
name: "{{ services.nginx_proxy.volume_folder }}/{{ volume }}"
|
|
state: directory
|
|
loop:
|
|
- conf
|
|
- vhost
|
|
- html
|
|
- dhparam
|
|
- certs
|
|
loop_control:
|
|
loop_var: volume
|
|
|
|
- name: Upload Compose file for nginx-proxy
|
|
template:
|
|
src: compose-files/nginx_proxy.yml.j2
|
|
dest: "{{ services.nginx_proxy.volume_folder }}/docker-compose.yml"
|
|
|
|
- name: Deploy nginx-proxy
|
|
docker_compose:
|
|
project_src: "{{ services.nginx_proxy.volume_folder }}"
|
|
pull: true
|
|
state: present
|