fix(roles): refresh apt in the docker and traefik scenarios and apply review round 2
Build / build (pull_request) Successful in 22s
Lint / lint (pull_request) Successful in 2m1s
Molecule / molecule (pull_request) Successful in 44m6s

The molecule images ship without apt lists, and --check does not
refresh them, so the fresh-host check of docker and traefik could not
find curl and wget. Their prepare now refreshes the cache, as pihole's
and system_baseline's already do by installing fixtures.

The sequence test gets its own class after the platform tests, the
check-mode rule is split into guards and README, and the
user_management comment sits on the task it explains.

Assisted-by: Claude Code
This commit is contained in:
Defame1297 committed 2026-11-26 12:18:48 +00:00
1 parent 3afff00b9b
commit 9ce0fbd433
5 files changed
+42 -30

No files matched your search

@@ -14,6 +14,12 @@
hosts: all
gather_facts: false
tasks:
# The image ships without apt lists, and --check does not refresh them, so the fresh-host
# check finds the packages the role installs.
- name: Refresh the apt cache
ansible.builtin.apt:
update_cache: true
- name: Create the unit drop-in directory
ansible.builtin.file:
path: /etc/systemd/system/traefik.service.d