Separate traefik and grafana prometheus

This commit is contained in:
Florian RICHER 2023-09-25 10:57:23 +02:00
parent d51a9802b0
commit 8c337a324b
14 changed files with 136 additions and 98 deletions

View file

@ -5,12 +5,6 @@
path: traefik
state: directory
- name: Copy traefik conf
ansible.builtin.copy:
src: .
dest: traefik/
register: traefik_copy_files_results
- name: Copy template conf
ansible.builtin.template:
src: "{{ item.src }}"
@ -21,16 +15,10 @@
- { src: 'config/dynamic_conf.yml', dest: 'config/dynamic_conf.yml' }
register: traefik_copy_templates_results
- name: Create proxy network
community.docker.docker_network:
name: proxy
state: present
become: true
- name: Update and restart container
community.docker.docker_compose:
project_src: traefik
state: present
pull: true
restarted: "{{ traefik_copy_files_results.changed or traefik_copy_templates_results.changed }}"
restarted: "{{ traefik_copy_templates_results.changed }}"
become: true