summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-02-12 17:12:07 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-02-12 17:12:07 +0100
commit824c3c73db749fb7f1de757d25cec28a7e1525e3 (patch)
tree93c32226f9691770c7b2f6905c5869dc60638d90
parentrenovate glt-jtsi (diff)
fix docker on debian/bullseye
-rw-r--r--roles/docker/engine/tasks/main.yml9
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