summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2021-05-19 10:24:44 +0200
committerJonathan Bauer2021-05-19 10:24:44 +0200
commit21cc04740a71e1e5bbcd96cbdcdf0e666986666b (patch)
tree645c4bcc8d217c4177c1a353c41fc04675214352
parent[singularity] singularity (diff)
downloadansible-bwlp-21cc04740a71e1e5bbcd96cbdcdf0e666986666b.tar.gz
ansible-bwlp-21cc04740a71e1e5bbcd96cbdcdf0e666986666b.tar.xz
ansible-bwlp-21cc04740a71e1e5bbcd96cbdcdf0e666986666b.zip
[libvirt] initial libvirt support
-rw-r--r--libvirt/tasks/main.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/libvirt/tasks/main.yml b/libvirt/tasks/main.yml
new file mode 100644
index 0000000..55dbeca
--- /dev/null
+++ b/libvirt/tasks/main.yml
@@ -0,0 +1,37 @@
+---
+- name: libvirt | Install packages for libvirt
+ apt:
+ name:
+ - openjdk-8-jre-headless
+ - libvirt-daemon-system
+ - libvirt-daemon
+ - libvirt-clients
+ - virt-viewer
+ - dnsmasq
+ state: present
+ install_recommends: no
+
+- name: libvirt | Remove default network configuration
+ file:
+ path: "{{ item }}"
+ state: absent
+ with_items:
+ - /etc/libvirt/qemu/networks/default.xml
+ - /etc/libvirt/qemu/networks/autostart/default.xml
+
+- name: libvirt | Remove GNOME from accessibility.properties
+ replace:
+ path: /etc/java-8-openjdk/accessibility.properties
+ regexp: '^(assistive_technologies=.*)'
+ replace: '#\1'
+
+- name: livirt | Disable systemd services
+ systemd:
+ name: "{{ item }}"
+ enabled: no
+ with_items:
+ - libvirtd
+ - libvirtd.socket
+ - libvirt-guests
+ - dnsmasq
+ ignore_errors: yes