Skip to content
Snippets Groups Projects
Commit 1943da37 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Check if libvirtd apparmor profiles exists before removal"

parents 210874e5 419e560d
No related branches found
No related tags found
No related merge requests found
...@@ -35,10 +35,17 @@ ...@@ -35,10 +35,17 @@
become: True become: True
when: (ansible_distribution == "Ubuntu" and ansible_distribution_major_version < "15") 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 - name: remove apparmor profile for libvirt
command: apparmor_parser -R /etc/apparmor.d/usr.sbin.libvirtd command: apparmor_parser -R /etc/apparmor.d/usr.sbin.libvirtd
become: True become: True
when: ansible_distribution == "Ubuntu" when:
- ansible_distribution == "Ubuntu"
- apparmor_libvirtd_profile.stat.exists == True
- name: create docker group - name: create docker group
group: group:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment