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
17 lines
465 B
YAML
17 lines
465 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 ufw
|
|
hosts: all
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Purge ufw
|
|
ansible.builtin.apt:
|
|
name: ufw
|
|
state: absent
|
|
purge: true
|
|
|
|
- name: Refresh the APT cache
|
|
ansible.builtin.apt:
|
|
update_cache: true
|