41 lines
789 B
YAML
41 lines
789 B
YAML
---
|
|
- name: Gather information
|
|
hosts: all
|
|
gather_facts: yes
|
|
tags: always
|
|
|
|
- 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: Setup the system
|
|
hosts: all
|
|
roles:
|
|
- role: essential
|
|
tags: essential
|
|
- role: sysctl
|
|
tags: sysctl
|
|
- role: nftables
|
|
tags: nftables
|
|
- role: apparmor
|
|
tags: apparmor
|
|
- role: consolefont
|
|
tags: consolefont
|
|
- 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
|