1
0
Fork 0
myserver-configuration/roles/traefik/tasks/base.yml

27 lines
697 B
YAML
Raw Normal View History

2023-05-03 21:30:58 +02:00
---
2023-05-20 16:07:56 +02:00
- name: Check traefik directory exist
ansible.builtin.file:
path: traefik
state: directory
2023-05-20 15:53:20 +02:00
- name: Copy template conf
ansible.builtin.template:
src: "{{ item.src }}"
dest: "traefik/{{ item.dest }}"
loop:
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
- { src: 'config/traefik.yml', dest: 'config/traefik.yml' }
2023-05-03 22:35:19 +02:00
2023-11-11 09:45:57 +01:00
# Avoid restart docker if dynamic_conf updated
- name: Copy dynamic_conf conf
ansible.builtin.template:
src: "config/dynamic_conf.yml"
dest: "traefik/config/dynamic_conf.yml"
2023-05-21 10:57:56 +02:00
- name: Update and restart container
2024-07-14 21:39:23 +02:00
community.docker.docker_compose_v2:
2023-05-20 15:53:20 +02:00
project_src: traefik
state: present
2024-07-14 21:39:23 +02:00
pull: always
2023-05-03 22:35:19 +02:00
become: true