summaryrefslogtreecommitdiff
path: root/libvirt-post-install.yml
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2026-01-23 13:09:27 +0100
committerjerome <jerome@xlinfo.fr>2026-01-23 13:09:27 +0100
commit0a704111138c5edb30a3ab286e9b0cebc99436e9 (patch)
tree88ae1268f6167a403e5c8b6a84143d54b9e3d621 /libvirt-post-install.yml
downloadlibvirt-master.tar.gz
libvirt-master.zip
Commit initialHEADmaster
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
+
+