33 lines
728 B
YAML
33 lines
728 B
YAML
|
|
---
|
||
|
|
- name: Install the KVM/libvirt substrate
|
||
|
|
ansible.builtin.apt:
|
||
|
|
name: "{{ integration_test__packages }}"
|
||
|
|
state: present
|
||
|
|
update_cache: true
|
||
|
|
cache_valid_time: 3600
|
||
|
|
tags: [packages]
|
||
|
|
|
||
|
|
- name: Enable and start libvirtd
|
||
|
|
ansible.builtin.systemd:
|
||
|
|
name: libvirtd
|
||
|
|
enabled: true
|
||
|
|
state: started
|
||
|
|
tags: [config]
|
||
|
|
|
||
|
|
- name: Grant users libvirt + kvm access
|
||
|
|
ansible.builtin.user:
|
||
|
|
name: "{{ item }}"
|
||
|
|
groups: [libvirt, kvm]
|
||
|
|
append: true
|
||
|
|
loop: "{{ integration_test__users }}"
|
||
|
|
tags: [users]
|
||
|
|
|
||
|
|
- name: Create the integration cache dir
|
||
|
|
ansible.builtin.file:
|
||
|
|
path: "{{ integration_test__cache_dir }}"
|
||
|
|
state: directory
|
||
|
|
owner: root
|
||
|
|
group: libvirt
|
||
|
|
mode: "2775"
|
||
|
|
tags: [config]
|