Commit Graph

12 Commits

Author SHA1 Message Date
Hoang Nguyen 51a5a5a5b7
Some updates
- auditd: migrate rules using deprecated syntax (`-w`, `-p` and `-k`).
  Also clean them up.
- nftables: remove the usage of nexthdr for matching ipv6 packets. Also
  allow DHCP client traffic, IGMP and multicast DNS.
2024-01-20 00:00:00 +07:00
Hoang Nguyen 048ee930bf
users: implement support for all 3 options sudo/doas/please for sudo_provider 2023-10-01 00:00:00 +07:00
Hoang Nguyen 62f28a2c92
cron: add scrub and trim jobs for btrfs/zfs
No longer depend on `rootfs` variable.
2023-06-20 00:00:00 +07:00
Hoang Nguyen 40ac02c67e
snapshot: add new role with 'snapper' option
btrbk will be next \^*^/

Also:
- detect the root filesystem in play with `ansible_mounts` instead
  of specifying it manually.
- dnscrypt: hardcode some privacy settings
2023-06-16 00:00:00 +07:00
Hoang Nguyen ec72f75587
Add 'ntpd' and 'auditd' roles
More changes:
- Remove 'grub' role. We shouldn't touch anything related to the
  bootloader here, as it's dangerous. I'll write docs for myself on
  this.
- Fix linting here and there, so ansible-lint won't complain
- Refactor group_vars/all.yml to be more readable
2023-04-06 00:00:00 +07:00
Hoang Nguyen fb9c5ebaed
Add PAM config for base-session
c199f2b52e.

Also:
- Use TOML as inventory format (to disgust YAML ^-^)
- Adjust TODO list:
  - drop go-audit (unmaintained upstream)
  - add turnstile (more interesting than pam-rundir)
- Drop waydroid role as upstream system config script is a mess
2023-04-01 00:00:00 +07:00
Hoang Nguyen df578407df
networking: add connman as an option for DHCP
Also:
- refactor /etc/network/interfaces
- remove Vagrantfile (not used regularly and doesn't work anymore)
2023-02-19 00:58:13 +07:00
Hoang Nguyen 3a9e64f503
iwd: clean up config
Also add network address randomization
2022-12-13 19:43:02 +07:00
Hoang Nguyen 385332e312
nftables: do some fancy stuff with sets
- Fix the incorrect use of rate limit on ICMP rule ('over' keyword
  matched over the rate limit)
- Use dynamic sets to limit connections on opened ports
- Naively whitelist all libvirt bridges. This includes the whole
  192.168.0.0/16 subnet, so it probably will clash with the internal LAN
  network. I control my own router :) so I don't mind (just use
  a different private IPv4 address space).
2022-11-05 11:21:19 +07:00
Hoang Nguyen 4d1dd6cd7a
cron: add other implementations of crond
Supports cronie, fcron and busybox's crond.
2022-10-30 00:35:50 +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 8e61893c93
Some beginning works for component customization 2022-10-01 21:15:29 +07:00