Initial playbook

This commit is contained in:
Raphael Dannecker 2026-01-20 08:59:26 +01:00
parent 2f58a103ca
commit ca3047e8ab

44
playbook.yml Normal file
View file

@ -0,0 +1,44 @@
---
# playbook.yml
- name: install base vm
hosts: all
become: true
remote_user: ansible
tasks:
- name: Install lxqt
ansible.builtin.apt:
name:
- lxqt
- spice-vdagent
update_cache: true
- name: Add user
ansible.builtin.user:
name: user
comment: "Local Guest User,,,"
shell: /bin/bash
uid: 1001
password_expire_min: 99999
createhome: true
password: password
- name: Enable autologin for user
ansible.builtin.copy:
content: |
[Autologin]
User=user
Session=lxqt.desktop
dest: /etc/sddm.conf
- name: Set grub default to zero
ansible.builtin.lineinfile:
dest: /etc/default/grub
regexp: '^GRUB_TIMEOUT=.*'
line: GRUB_TIMEOUT=0
notify: Update grub
handlers:
- name: Update grub
ansible.builtin.command: update-grub