summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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