diff --git a/roles/ceph-osd/templates/ceph-osd-run.sh.j2 b/roles/ceph-osd/templates/ceph-osd-run.sh.j2 index 8ddd5fff7..bf5ee9b38 100644 --- a/roles/ceph-osd/templates/ceph-osd-run.sh.j2 +++ b/roles/ceph-osd/templates/ceph-osd-run.sh.j2 @@ -24,6 +24,9 @@ fi --rm \ --net=host \ --cap-add SYS_ADMIN \ + {% if ansible_distribution == 'Ubuntu' -%} + --security-opt apparmor:unconfined \ + {% endif -%} --pid=host \ {% if not osd_containerized_deployment_with_kv -%} -v /var/lib/ceph:/var/lib/ceph \