Project

Profile

Help

Issue #6230

Updated by mdepaulo@redhat.com about 4 years ago

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` true` 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

Back