datacoop.ansible/roles/docker/tasks/services/nginx_proxy.yml

26 lines
580 B
YAML
Raw Normal View History

# 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
2023-09-30 16:15:27 +00:00
- name: Upload Compose file for nginx-proxy
template:
src: compose-files/nginx_proxy.yml.j2
dest: "{{ services.nginx_proxy.volume_folder }}/docker-compose.yml"
2023-09-30 16:15:27 +00:00
- name: Deploy nginx-proxy
docker_compose:
project_src: "{{ services.nginx_proxy.volume_folder }}"
pull: true
state: present