From b21fc40a38dfe4e4fe2c001b4ef8cadca02f0ded Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Wed, 12 Apr 2023 16:24:01 +0200 Subject: [PATCH] traefik works --- max.yml | 2 +- roles/common/tasks/main.yml | 6 ++++++ roles/docker/tasks/main.yml | 11 +++++------ 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/max.yml b/max.yml index ca7fd87..b99e777 100644 --- a/max.yml +++ b/max.yml @@ -21,5 +21,5 @@ setup: roles: - - {role: 'common', tags: 'common'} - {role: 'docker', tags: 'docker'} + - {role: 'traefik', tags: 'traefik'} diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 713ba70..b8f79d0 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -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" diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index d62b241..7b7b88b 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -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"