Merge "[#75] functionality to set libvirt sec driver"
This commit is contained in:
commit
d852d2db1a
@ -10,6 +10,10 @@
|
|||||||
- name: install libvirt
|
- name: install libvirt
|
||||||
include_role:
|
include_role:
|
||||||
name: libvirt-install
|
name: libvirt-install
|
||||||
|
tasks_from: "{{ item }}"
|
||||||
|
with_items:
|
||||||
|
- main
|
||||||
|
- configure
|
||||||
|
|
||||||
- name: create pool
|
- name: create pool
|
||||||
include_role:
|
include_role:
|
||||||
|
1
roles/libvirt-install/defaults/main.yaml
Normal file
1
roles/libvirt-install/defaults/main.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
libvirt_qemu_config_file: /etc/libvirt/qemu.conf
|
13
roles/libvirt-install/tasks/configure.yaml
Normal file
13
roles/libvirt-install/tasks/configure.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
- name: configure libvirt
|
||||||
|
become: true
|
||||||
|
block:
|
||||||
|
- name: Set libvirt security driver
|
||||||
|
lineinfile:
|
||||||
|
path: "{{ libvirt_qemu_config_file }}"
|
||||||
|
state: present
|
||||||
|
regexp: '^\s*security_driver\s*=.*$'
|
||||||
|
line: "security_driver = \"{{ libvirt_security_driver | default('none') }}\""
|
||||||
|
- name: libvirtd restarted
|
||||||
|
service:
|
||||||
|
name: libvirtd
|
||||||
|
state: restarted
|
@ -38,6 +38,7 @@
|
|||||||
append: yes
|
append: yes
|
||||||
- name: Reset ssh connection to allow user changes to affect "{{ ansible_user }}"
|
- name: Reset ssh connection to allow user changes to affect "{{ ansible_user }}"
|
||||||
meta: reset_connection
|
meta: reset_connection
|
||||||
|
ignore_errors: true
|
||||||
- name: Start libvirtd
|
- name: Start libvirtd
|
||||||
service:
|
service:
|
||||||
name: libvirtd
|
name: libvirtd
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
- playbooks/airship-airshipctl-build-gate.yaml
|
- playbooks/airship-airshipctl-build-gate.yaml
|
||||||
post-run: playbooks/airship-collect-logs.yaml
|
post-run: playbooks/airship-collect-logs.yaml
|
||||||
run: playbooks/airship-airshipctl-test-runner.yaml
|
run: playbooks/airship-airshipctl-test-runner.yaml
|
||||||
nodeset: airship-airshipctl-single-16GB-bionic-node
|
nodeset: airship-airshipctl-single-32GB-bionic-node
|
||||||
vars:
|
vars:
|
||||||
site_name: test-bootstrap
|
site_name: test-bootstrap
|
||||||
## var files are the files that are located at playbooks/vars directory
|
## var files are the files that are located at playbooks/vars directory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user