The probes in install.yml, orphan_rules.yml, service_rules.yml and sysctl.yml took a skipped `command` task as the sign of check mode. ansible-core 2.22 deprecates that: command.py marks its check-mode `r['skipped'] = True` for removal in 2.25, and the 2.22 changelog says "Returning skipped from a module or action plugin is deprecated and will be removed in ansible-core 2.25". The probe would then report ok, and the role would delete rules and edit sysctl.conf under --check. The probe now runs `echo ran` and reads its output: a command does not run in check mode, under --check or the check_mode keyword, so the output is empty there. Checked against ansible-core 2.22 and a copy with the skipped return removed, in a normal play, a check_mode play and --check. service_rules.yml had the same probe and is changed with the others. Assisted-by: Claude Code
6 lines
187 B
YAML
6 lines
187 B
YAML
---
|
|
trivial:
|
|
- >-
|
|
ufw - The check-mode probes read whether a command ran instead of whether it was skipped, which
|
|
ansible-core 2.25 stops reporting for a command in check mode.
|