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

27 lines
709 B
YAML
Raw Permalink 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"
2024-07-14 22:47:15 +02:00
# - name: Update and restart container
# community.docker.docker_compose_v2:
# project_src: traefik
# state: present
# pull: always
# become: true