Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible dry run support #96

Open
3 tasks
eddie4 opened this issue Oct 28, 2024 · 0 comments
Open
3 tasks

Ansible dry run support #96

eddie4 opened this issue Oct 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@eddie4
Copy link

eddie4 commented Oct 28, 2024

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

  1. Have an existing OpenNebula environment
  2. 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.

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

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
@sk4zuzu sk4zuzu added the enhancement New feature or request label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants