feat(traefik): skip a fresh apt refresh and trim the scenario's repeated work
The prerequisites install takes only distribution packages and runs before any source is added, yet refreshed the APT cache on every run. It now passes cache_valid_time: 3600, as docker, system_baseline and user_management already do; the README tells a consumer who adds a source just before the role to refresh the cache themselves. The default scenario repeated work other steps already cover. Verify now exercises the update path once, to the other release, so prepare builds only that stand-in; the role default's stand-in was used only by the way back. mortis.kamino.ufw moves to prepare, as the ufw scenario tests it, so converge and idempotence run only traefik, with fact gathering off since none of the roles reads facts. Closes #458 Assisted-by: Claude Code
This commit is contained in:
1 parent
716baa19c7
commit
7bc3cc6bdf
7 files changed
+45
-42
No files matched your search
@@ -1,12 +1,10 @@
|
||||
---
|
||||
# Role variables come from the inventory group_vars in molecule.yml, so the idempotence step
|
||||
# reruns converge with identical configuration; verify's plays override only what they test.
|
||||
# The base ufw play comes first: traefik passes its rules through the mortis.kamino.ufw
|
||||
# service_rules entry point, which needs ufw installed and active. ufw_rules comes from the
|
||||
# same group_vars (the SSH allow rule the lock-out guard requires).
|
||||
# mortis.kamino.ufw runs in prepare.yml, so only traefik counts toward idempotence. Facts are
|
||||
# off: neither the role nor the roles it includes reads any.
|
||||
- name: Converge
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
gather_facts: false
|
||||
roles:
|
||||
- role: mortis.kamino.ufw
|
||||
- role: mortis.kamino.traefik
|
||||
Reference in new issue
Block a user