diff --git a/releasenotes/notes/bug-2004583-341238937cc71bef.yaml b/releasenotes/notes/bug-2004583-341238937cc71bef.yaml new file mode 100644 index 0000000..60b9a84 --- /dev/null +++ b/releasenotes/notes/bug-2004583-341238937cc71bef.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + Fixes the docker role to avoid an error + "apparmor_parser apparmor_parser --version failed" by installing + apparmor package on debian like systems. + `LP#2004583 `__ diff --git a/roles/docker/defaults/main.yml b/roles/docker/defaults/main.yml index f4419be..8de6997 100644 --- a/roles/docker/defaults/main.yml +++ b/roles/docker/defaults/main.yml @@ -22,6 +22,7 @@ docker_yum_package: "{% if ansible_facts.distribution == 'openEuler' %}docker{% # List of packages to install. docker_packages: - "{{ docker_apt_package if ansible_facts.os_family == 'Debian' else docker_yum_package }}" + - "{% if ansible_facts.os_family == 'Debian' %}apparmor{% endif %}" - "{% if not docker_disable_default_iptables_rules | bool %}iptables{% endif %}" docker_storage_driver: ""