Commit Graph

9 Commits

Author SHA1 Message Date
Hoang Nguyen 6e8d994bc3
community.general.packaging.* is deprecated 2022-11-26 23:09:24 +07:00
Hoang Nguyen 39f736f34c
Small changes here and there
- container: role removed
- ansible:
  - use FQDN module path community.general.packaging.os.apk
  - use "true, false" instead of "yes, no" (stop being annoying, yamllint)
2022-10-16 17:41:04 +07:00
Hoang Nguyen 68d4ac38eb
Yep yep
- nftables: don't masquerade on IPv6 addresses as SNAT doesn't exist in
  IPv6 realm (yet?)
- use `pamd`, `sysctl`, `kernel_blacklist`, `pam_limits`, `mount` Ansible
  modules instead of copying files to the right places
- zram: use loops to dynamically configure zram devices
2022-04-17 19:02:21 +07:00
Hoang Nguyen 3764a538ed
Convert networking stuff to templates
- unbound: add `network_interfaces` variable to control
  /etc/network/interfaces (check interfaces(5))
- nftables: add `libvirt_bridges` and `opened_ports` to
  dynamically generate firewall rules
2022-04-04 13:34:07 +07:00
Hoang Nguyen fb1174d0bd
libvirt: allow normal user alone is enough 2022-03-05 16:46:57 +07:00
Hoang Nguyen d1bc71e7f7
Add usbguard role + refactor apk packages 2022-02-27 23:06:06 +07:00
Hoang Nguyen ff28a00140
Fix some regressions + tasks revision
DETAILS:
- consolefont: moved to essential role
- unbound: copy the config only after everything is set up correctly
  (or else the validation will complain trusted-key.key and the root
  hints are not in the chroot)
- essential: start dbus service before handling seat management (elogind
  and seatd services depend on dbus)
- use full-path for commands (avoid potential polluted PATH attack)
- apk: use '>-' for the package list. See NOTES

NOTES:
- '|' (literal) interprets new lines with a line break
- '>' (folded) produces a single line with a '\n' at the end
- '>-' (folded_strip) creates a single line without a line break in the
  end
- '>' (folded scalars) joins all the lines with a space (doesn't
  preserve numeric, boolean and other non-string types)

Check https://adminswerk.de/multi-line-string-yaml-ansible-II/ for some
problems on using multiple lines variables
2022-02-14 13:09:33 +07:00
Hoang Nguyen e059193bd7
Big chunk of changes
- essential:
  - make polkit optional
  - move /etc/hosts file to unbound role
- libvirt:
  - make libvirt daemons configurable
  - delete the firewall patch. Hardcode the rules by default (for now)
    so that the playbook is compatible with `ansible-core`
- user: add pam_limits file (moved from dotfiles repository)
- sysctl: role deleted. The task was moved to essential role
- fstab: new role for /run, /tmp, /proc mounts
- add seatd as a 'seat_manager' option
- cron: use find command to restraint deleted files in /var/tmp
2022-02-12 00:56:39 +07:00
Hoang Nguyen 92382adbcd
Getting started 2022-01-15 01:46:59 +07:00