This repository has been archived on 2024-02-16. You can view files and clone it, but cannot push or open issues or pull requests.
2022-01-14 19:46:59 +01:00
|
|
|
---
|
2022-02-11 18:39:35 +01:00
|
|
|
- name: Sanity checks
|
2022-01-14 19:46:59 +01:00
|
|
|
hosts: all
|
|
|
|
gather_facts: yes
|
|
|
|
tags: always
|
2022-02-11 18:39:35 +01:00
|
|
|
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
|
2022-01-14 19:46:59 +01:00
|
|
|
|
2022-02-11 18:39:35 +01:00
|
|
|
- name: Check seat manager name
|
|
|
|
fail:
|
|
|
|
msg: seat_manager needs to be 'elogind' or 'seatd'
|
|
|
|
when: not seat_manager in [ 'elogind', 'seatd' ]
|
2022-01-14 19:46:59 +01:00
|
|
|
|
|
|
|
- name: Setup the system
|
|
|
|
hosts: all
|
|
|
|
roles:
|
|
|
|
- role: essential
|
|
|
|
tags: essential
|
2022-02-11 18:39:35 +01:00
|
|
|
- role: fstab
|
|
|
|
tags: fstab
|
2022-01-14 19:46:59 +01:00
|
|
|
- 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: zram
|
|
|
|
tags: zram
|
|
|
|
- role: user
|
|
|
|
tags: user
|