You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(ansible): every dpkg presence probe is skipped under --check, so a dry run fails at the task that reads it #19663
Every Ansible package-presence probe registers the result of a dpkg-querycommand task and then reads <var>.stdout in a later when:. Under ansible-playbook --check a command task is skipped and registers no stdout, so the reading task fails with an undefined-attribute error instead of reporting what it would change. A dry run of any play that contains one of these probes dies at the probe.
Add check_mode: false to every dpkg presence probe. Extend repo_tests/dpkg_tests_installed_state_not_knowledge_17387_test.py, which already enumerates these registrations, so that a probe without it fails.
Acceptance criteria
Every dpkg-query registration in the Ansible tree carries check_mode: false (evidence: the guard's enumeration with a count).
Maintainer decision (2026-10-27), from the review of the merge train PR #19784: run the status query in check mode on every package or service where it works. This issue therefore widens from dpkg presence probes to every read-only status query: dpkg-query, apt-cache policy, systemctl is-active/is-enabled, <binary> --version and rpm -q. Each gets check_mode: false and changed_when: false, and a guard fails on a new query task without it, with contrast fixtures. About 60 query lines in 12+ files on main; only 6 tasks carry check_mode: false today. The two Grafana version probes are fixed in #19784. (Consolidated from #19808.)
Landed via the merge train (PR #19884), main d660746.
Evidence on main:
AC1 ticked: all six dpkg-query registrations carry check_mode: false: roles/monitoring/tasks/grafana.yml:22, roles/slm_manager/tasks/grafana.yml:62, migrate-grafana-to-vm.yml:106, roles/postgresql/tasks/install.yml:21, roles/redis/tasks/main.yml:19, playbooks/disable-idle-nginx.yml:29 (also check-system-updates.yml:106). PR fix(ansible): read-only status queries run in check mode, with a guard (#19663) #19814 extended this to 29 status-query tasks; repo_tests/ansible_status_queries_run_in_check_mode_19663_test.py asserts a floor of 31 queries.
Acceptance criteria verified against main at f0a3255 (the commit deployed to the local install), owner-approved closure 2026-11-19. Evidence, read at that commit:
Every status query runs in check mode: repo_tests/ansible_status_queries_run_in_check_mode_19663_test.py:99test_every_status_query_runs_in_check_mode (assert not missing:115, floor 29).
Activity
mrveiss commentedon Oct 27, 2026
Maintainer decision (2026-10-27), from the review of the merge train PR #19784: run the status query in check mode on every package or service where it works. This issue therefore widens from dpkg presence probes to every read-only status query:
dpkg-query,apt-cache policy,systemctl is-active/is-enabled,<binary> --versionandrpm -q. Each getscheck_mode: falseandchanged_when: false, and a guard fails on a new query task without it, with contrast fixtures. About 60 query lines in 12+ files on main; only 6 tasks carrycheck_mode: falsetoday. The two Grafana version probes are fixed in #19784. (Consolidated from #19808.)github-actions commentedon Oct 27, 2026
Landed in train train-2026-10-27-85w (#19784, merge
71503d9dfe) via #19665fix(ansible): the status-query detector treats a multi-line command a…
fix(ansible): the status-query binary pattern cannot backtrack expone…
test(guards): re-pin the browser-port reach floor after merging main (#…
fix(ansible): verify-after-install queries skip under --check, the de…
github-actions commentedon Oct 28, 2026
Landed in train train-2026-10-28-86d (#19884, merge
d6607461af) via #19814mrveiss commentedon Oct 28, 2026
Landed via the merge train (PR #19884), main d660746.
Evidence on main:
check_mode: false:roles/monitoring/tasks/grafana.yml:22,roles/slm_manager/tasks/grafana.yml:62,migrate-grafana-to-vm.yml:106,roles/postgresql/tasks/install.yml:21,roles/redis/tasks/main.yml:19,playbooks/disable-idle-nginx.yml:29(alsocheck-system-updates.yml:106). PR fix(ansible): read-only status queries run in check mode, with a guard (#19663) #19814 extended this to 29 status-query tasks;repo_tests/ansible_status_queries_run_in_check_mode_19663_test.pyasserts a floor of 31 queries.ansible_status_queries_run_in_check_mode_19663_test.py(test_a_query_without_check_mode_is_flagged), not the bug(ansible): postgresql install detection uses 'dpkg -l', which passes for a removed-but-not-purged package — provisioning then dies on 'unknown user postgres' #17387 guard the criterion names. The behaviour exists; the criterion's wording is not met as written.Issue stays open for a maintainer ruling on AC2.
mrveiss commentedon Nov 19, 2026
Acceptance criteria verified against
mainat f0a3255 (the commit deployed to the local install), owner-approved closure 2026-11-19. Evidence, read at that commit:repo_tests/ansible_status_queries_run_in_check_mode_19663_test.py:99test_every_status_query_runs_in_check_mode(assert not missing:115, floor 29).:128.