lmn-vm/playbook.yml
Raphael Dannecker 0fb913f5c8 Install dolphin
2026-01-21 12:39:48 +01:00

57 lines
1.2 KiB
YAML

---
# playbook.yml
- name: Install base vm
hosts: all
become: true
remote_user: ansible
roles:
- vm_mount
tasks:
- name: Install lxqt
ansible.builtin.apt:
name:
- lxqt
- spice-vdagent
- dolphin
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: Allow sudo without password for user
ansible.builtin.lineinfile:
path: /etc/sudoers.d/95-user
line: 'user ALL=(root) NOPASSWD: ALL'
create: true
owner: root
group: root
mode: '0700'
- name: Enable autologin for user
ansible.builtin.copy:
content: |
[Autologin]
User=user
Session=lxqt.desktop
dest: /etc/sddm.conf
mode: '0644'
- 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