53 lines
1.1 KiB
YAML
53 lines
1.1 KiB
YAML
---
|
|
- name: Sanity checks
|
|
hosts: all
|
|
gather_facts: yes
|
|
tags: always
|
|
tasks:
|
|
- name: Check whether the current user is 'root'
|
|
fail:
|
|
msg: This playbook should only be run as 'root'
|
|
when: ansible_real_user_id != 0
|
|
|
|
- name: Check seat manager name
|
|
fail:
|
|
msg: seat_manager needs to be 'elogind' or 'seatd'
|
|
when: not seat_manager in [ 'elogind', 'seatd' ]
|
|
|
|
- name: Setup the system
|
|
hosts: all
|
|
roles:
|
|
- role: essential
|
|
tags: essential
|
|
- role: acpi
|
|
tags: acpi
|
|
- role: seat
|
|
tags: seat
|
|
- role: fstab
|
|
tags: fstab
|
|
- role: nftables
|
|
tags: nftables
|
|
- role: apparmor
|
|
tags: apparmor
|
|
- role: cron
|
|
tags: cron
|
|
- role: grub
|
|
tags: grub
|
|
- role: iwd
|
|
tags: [ laptop, iwd ]
|
|
- role: libvirt
|
|
tags: libvirt
|
|
- role: tlp
|
|
tags: [ laptop, tlp ]
|
|
- role: unbound
|
|
tags: unbound
|
|
- role: usbguard
|
|
tags: usbguard
|
|
- role: zram
|
|
tags: zram
|
|
- role: user
|
|
tags: user
|
|
- role: container
|
|
tags: container
|
|
- role: waydroid
|
|
tags: waydroid
|