traefik works

This commit is contained in:
Pim Kunis 2023-04-12 16:24:01 +02:00
parent 46dd504b43
commit b21fc40a38
3 changed files with 12 additions and 7 deletions

View file

@ -21,5 +21,5 @@
setup:
roles:
- {role: 'common', tags: 'common'}
- {role: 'docker', tags: 'docker'}
- {role: 'traefik', tags: 'traefik'}

View file

@ -9,3 +9,9 @@
file:
path: "{{ base_service_dir }}"
state: directory
- name: Delete externally managed environment file
shell:
cmd: "rm /usr/lib/python*/EXTERNALLY-MANAGED"
register: rm
changed_when: "rm.rc == 0"
failed_when: "false"

View file

@ -25,12 +25,11 @@
- docker-ce-cli
- containerd.io
- docker-compose-plugin
# Do we need this? pip doesn't like it
# - name: Install Docker modules for Python
# pip:
# name:
# - docker
# - docker-compose
- name: Install Docker modules for Python
pip:
name:
- docker
- docker-compose
- name: Copy daemon.json
copy:
src: "{{ role_path }}/files/daemon.json"