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

Task "Check if extension pack is already installed" is not idempotent #3

Open
jackm opened this issue Jan 13, 2022 · 0 comments
Open

Comments

@jackm
Copy link

jackm commented Jan 13, 2022

Task "Check if extension pack is already installed" in file virtualbox.yml:32 registers a variable after running a shell command but Ansible will always mark this task as being changed - this breaks idempotence of the task.

You should add changed_when: false to the task to prevent this since this task is purely for information gathering and should not have any side effects.

This task should also probably be using the Ansible command module instead of the Ansible shell module as the command being run doesn't depend on any shell specific features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant