Initial playbook
This commit is contained in:
parent
2f58a103ca
commit
ca3047e8ab
1 changed files with 44 additions and 0 deletions
44
playbook.yml
Normal file
44
playbook.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue