Merge "fix apparmor profile for non-standard nova home"
This commit is contained in:
commit
4943bab3fd
@ -88,3 +88,8 @@
|
|||||||
- "venv changed"
|
- "venv changed"
|
||||||
- "cert installed"
|
- "cert installed"
|
||||||
- "systemd service changed"
|
- "systemd service changed"
|
||||||
|
|
||||||
|
- name: Reload apparmor profile
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: apparmor.service
|
||||||
|
state: reloaded
|
||||||
|
@ -135,6 +135,23 @@
|
|||||||
- nova-kvm
|
- nova-kvm
|
||||||
- nova-libvirt
|
- nova-libvirt
|
||||||
|
|
||||||
|
- name: Set apparmor config (Ubuntu/Debian)
|
||||||
|
lineinfile:
|
||||||
|
dest: "/etc/apparmor.d/local/usr.lib.libvirt.virt-aa-helper"
|
||||||
|
line: " {{ nova_system_home_folder }}/instances/_base/* r,"
|
||||||
|
backup: true
|
||||||
|
create: true
|
||||||
|
owner: "root"
|
||||||
|
group: "root"
|
||||||
|
mode: "0644"
|
||||||
|
when:
|
||||||
|
- ansible_facts['distribution'] == 'Ubuntu' or ansible_facts['distribution'] == 'Debian'
|
||||||
|
notify: Reload apparmor profile
|
||||||
|
tags:
|
||||||
|
- nova-config
|
||||||
|
- nova-kvm
|
||||||
|
- nova-libvirt
|
||||||
|
|
||||||
- name: Including nova_disable_smt tasks
|
- name: Including nova_disable_smt tasks
|
||||||
include_tasks: nova_disable_smt.yml
|
include_tasks: nova_disable_smt.yml
|
||||||
when:
|
when:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user