diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-02-12 17:12:07 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-02-12 17:12:07 +0100 |
commit | 824c3c73db749fb7f1de757d25cec28a7e1525e3 (patch) | |
tree | 93c32226f9691770c7b2f6905c5869dc60638d90 /roles/docker/engine | |
parent | renovate glt-jtsi (diff) |
fix docker on debian/bullseye
Diffstat (limited to 'roles/docker/engine')
-rw-r--r-- | roles/docker/engine/tasks/main.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/docker/engine/tasks/main.yml b/roles/docker/engine/tasks/main.yml index 47948ff9..a4f58768 100644 --- a/roles/docker/engine/tasks/main.yml +++ b/roles/docker/engine/tasks/main.yml @@ -49,6 +49,15 @@ state: present allow_downgrade: yes + ## TODO: for now this is only needed on Debian Bullseye when using the docker.io package from the official repository +- name: install apparmor + when: + - docker_pkg_provider == 'distro' + - ansible_distribution == 'Debian' and (ansible_distribution_major_version | int) == 11 + apt: + name: apparmor + state: present + - name: start and enable docker service: name: docker |