Actions
Issue #6230
closedAnsible Check Mode does not work with ansible-pulp
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
A quick look at the tasks in ansible-pulp that need check_mode:
- command
- shell
- script
Shows that they do not have the appropriate lines (check_mode: false
usually) (corrected this description from true) so that ansible can be run in check mode (--dry-run). i.e., the tasks that don't modify the system will not run at all, but later tasks depend on them, and will fail (or behave differently.)
Check Mode is a feature that users sometimes use, so we should fix these tasks.
https://docs.ansible.com/ansible/latest/user_guide/playbooks_checkmode.html
Our molecule-based CI does not catch this, because no part of it, not even converge, uses check_mode: https://github.com/ansible-community/molecule/issues/128
Actions
Testing check mode
https://pulp.plan.io/issues/6230 closes #6230