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
Description
OpenNebula consultants deployed an OpenNebula environment for our company. While checking the work I noticed that currently running ansible with --check and --diff fails. This seems to be because it's using several ansible command tasks to gather information. The gathering of this information is not a write task and could there for still be executed. I resolved this issue locally but seeing as it's a rather simple fix perhaps it should be added to the Master.
To Reproduce
Have an existing OpenNebula environment
Run ansible-playbook with --check and --diff flags
Expected behaviour
I expect ansible to check existing files and their content and Unix settings.
Current behaviour
Ansible stops at the zone information as onezone show OpenNebula --json is not executed and therefor the next step can't parse the json information.
Suggested fix
Adding check_mode: false to show commands.
Description
OpenNebula consultants deployed an OpenNebula environment for our company. While checking the work I noticed that currently running ansible with --check and --diff fails. This seems to be because it's using several ansible command tasks to gather information. The gathering of this information is not a write task and could there for still be executed. I resolved this issue locally but seeing as it's a rather simple fix perhaps it should be added to the Master.
To Reproduce
Expected behaviour
I expect ansible to check existing files and their content and Unix settings.
Current behaviour
Ansible stops at the zone information as
onezone show OpenNebula --json
is not executed and therefor the next step can't parse the json information.Suggested fix
Adding
check_mode: false
to show commands.Note: The true/false are the opposite of what I expected. But false will let the task execute even though it's in --check.
https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_checkmode.html
Progress Status
The text was updated successfully, but these errors were encountered: