Files
Kamino/roles/ufw/tasks/install.yml
T
Defame1297 22f5bc33e9
Build / build (pull_request) Successful in 28s
Molecule / select (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 3m0s
Molecule / Result (pull_request) Canceled after 0s
Molecule / scenarios (pull_request) Canceled after 18m22s
chore: correct comments the ci image change left stale
image.yml's push paths listed extensions/molecule/requirements.yml under
the ci image, which no longer bakes it; it now sits with the
molecule-controller files. The list only triggers the build, so the paths
are unchanged. requirements-dev.txt no longer feeds Molecule, so the
proxmoxer comment names lint only. The ufw probe comments now say the
probe's stdout is empty in check mode, in two lines each, and two lines
in lint.yml and the workflow rules are re-wrapped.

Assisted-by: Claude Code
2026-12-02 09:26:03 +00:00

21 lines
844 B
YAML

---
- name: Install ufw
become: true
ansible.builtin.package:
name: "{{ ufw_package_name }}"
state: present
register: __ufw_install
# Not ansible_check_mode, which the play-level `check_mode: true` keyword does not set in include_role
# tasks, nor `is skipped`, which ansible-core 2.25 drops: the probe's stdout is empty in check mode.
- name: Probe whether the run is in check mode
ansible.builtin.command: echo ran
register: __ufw_install_probe
changed_when: false
# False only when a check-mode run would install ufw: the binary and /etc/ufw are then missing.
# Undefined when this file's tags are skipped; the guards then default it to true.
- name: Remember whether ufw can be configured
ansible.builtin.set_fact:
__ufw_can_configure: "{{ __ufw_install is not changed or __ufw_install_probe.stdout == 'ran' }}"