diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-09-14 18:17:51 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-09-14 18:17:51 +0000 |
| commit | 1943da377af5f4a3f5fab3489df48653b734ccec (patch) | |
| tree | 036d77fab17c1e1bf9292ef657c14c927ed068b7 | |
| parent | 210874e50091e2b95c123dfac42fec84bc2941a5 (diff) | |
| parent | 419e560d2b46bffb8659ed3b70eb49efa6a238c4 (diff) | |
| download | kolla-1943da377af5f4a3f5fab3489df48653b734ccec.tar.gz kolla-1943da377af5f4a3f5fab3489df48653b734ccec.zip | |
Merge "Check if libvirtd apparmor profiles exists before removal"
| -rw-r--r-- | ansible/roles/baremetal/tasks/post-install.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ansible/roles/baremetal/tasks/post-install.yml b/ansible/roles/baremetal/tasks/post-install.yml index 1fa91be1f..b5b88cae9 100644 --- a/ansible/roles/baremetal/tasks/post-install.yml +++ b/ansible/roles/baremetal/tasks/post-install.yml @@ -35,10 +35,17 @@ become: True when: (ansible_distribution == "Ubuntu" and ansible_distribution_major_version < "15") +- name: get stat of libvirtd apparmor profile + stat: path=/etc/apparmor.d/usr.sbin.libvirtd + register: apparmor_libvirtd_profile + when: ansible_distribution == "Ubuntu" + - name: remove apparmor profile for libvirt command: apparmor_parser -R /etc/apparmor.d/usr.sbin.libvirtd become: True - when: ansible_distribution == "Ubuntu" + when: + - ansible_distribution == "Ubuntu" + - apparmor_libvirtd_profile.stat.exists == True - name: create docker group group: |
