summaryrefslogtreecommitdiff
path: root/libvirt-post-install.yml
diff options
context:
space:
mode:
Diffstat (limited to 'libvirt-post-install.yml')
-rw-r--r--libvirt-post-install.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/libvirt-post-install.yml b/libvirt-post-install.yml
new file mode 100644
index 0000000..2cce304
--- /dev/null
+++ b/libvirt-post-install.yml
@@ -0,0 +1,44 @@
+---
+# ansible-playbook libvirt-post-install.yml -k -K
+# -k (ask ssh pass) -K (ask sudo pass)
+
+- hosts: vms
+ vars:
+ packages:
+ - vim
+ - curl
+ - wget
+ - git
+ - zip
+ - qemu-guest-agent
+ tasks:
+ - name: upgrade
+ package:
+ name: '*'
+ state: latest
+ - name: redhat
+ package:
+ name:
+ - epel-release
+ - cockpit
+ state: present
+ when: ansible_os_family == 'RedHat'
+
+ - name: post installation
+ package:
+ name: '{{item}}'
+ state: present
+ with_items: '{{packages}}'
+
+ - name: vim
+ shell:
+ cmd: 'update-alternatives --set editor /usr/bin/vim.basic'
+ when: ansible_os_family == 'Debian'
+
+ - name: port serie
+ service:
+ name: serial-getty@ttyS0
+ state: started
+ enabled: true
+
+