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: setup:
roles: roles:
- {role: 'common', tags: 'common'}
- {role: 'docker', tags: 'docker'} - {role: 'docker', tags: 'docker'}
- {role: 'traefik', tags: 'traefik'}

View file

@ -9,3 +9,9 @@
file: file:
path: "{{ base_service_dir }}" path: "{{ base_service_dir }}"
state: directory 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 - docker-ce-cli
- containerd.io - containerd.io
- docker-compose-plugin - docker-compose-plugin
# Do we need this? pip doesn't like it - name: Install Docker modules for Python
# - name: Install Docker modules for Python pip:
# pip: name:
# name: - docker
# - docker - docker-compose
# - docker-compose
- name: Copy daemon.json - name: Copy daemon.json
copy: copy:
src: "{{ role_path }}/files/daemon.json" src: "{{ role_path }}/files/daemon.json"