Files
playbook-sample/roles/traefik/tasks/configure.yml
ebesson e53a7da36c
All checks were successful
continuous-integration/drone/push Build is passing
feat: initial commit
2021-01-15 21:32:00 +01:00

36 lines
861 B
YAML

---
- name: configure | deploy systemd configuration
template:
src: etc/systemd/system/traefik.service.j2
dest: /etc/systemd/system/traefik.service
owner: root
group: root
mode: 0644
notify: "restart traefik"
- name: configure | deploy traefik configuration
template:
src: opt/traefik/traefik.toml.j2
dest: "{{ traefik_docker_compose_directory }}/traefik.toml"
owner: root
group: root
mode: 0644
notify: "restart traefik"
- name: configure | create acme.json
file:
path: "{{ traefik_docker_compose_directory }}/acme.json"
owner: root
group: root
state: touch
mode: 0600
changed_when: no
- name: configure | create network traefik_network
command: docker network create traefik_network
ignore_errors: yes
changed_when: no
- name: configure | flush handlers
meta: flush_handlers