Files
Kamino/roles/fail2ban/molecule/check-absent/prepare.yml
T
Defame1297 c64b4b932b ci(images): stop baking ufw and fail2ban into the molecule images
ADR 0002 keeps a package a role installs out of the molecule images, so its scenario exercises
the install. The ufw and fail2ban roles install their packages, so both images drop them; iptables,
openssh-server, python3-systemd and gnupg stay as fixtures. The labels, header comments, image
docs and image-smoke package lists no longer claim the packages are baked or that a converge
makes no network calls.

Refs: #435
Assisted-by: Claude Code
2026-11-29 18:53:24 +00:00

17 lines
480 B
YAML

---
# The purge keeps the scenario independent of what the image ships. The image keeps no APT lists,
# and the check step needs them, or the install task cannot even preview the package.
- name: Prepare a host without fail2ban
hosts: all
gather_facts: false
tasks:
- name: Purge fail2ban
ansible.builtin.apt:
name: fail2ban
state: absent
purge: true
- name: Refresh the APT cache
ansible.builtin.apt:
update_cache: true