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

Enabled features always reports changed, even when not changed #42

Closed
mikeycmccarthy opened this issue Mar 5, 2018 · 2 comments
Closed

Comments

@mikeycmccarthy
Copy link
Contributor

Running the netscaler_nitro_request to enable features, just like the example in the code, reports changed each and every time, despite not changing anything. Not sure if this is expected behaviour given what the API returns?

Tested with Ansible 2.5.0rc1, installed via pip, on OSX

@giorgos-nikolopoulos
Copy link
Contributor

This is the expected behavior.

Since this is a low level module I opted to keep it simple for robustness reasons.
As such there is no check for the value changing and the changed status is always set to true.

If you want to see if a value change will happen you can construct a more complex playbook that will first retrieve the value and then make the change if necessary.

A playbook that has this kind of logic can be found in this sample.

@mikeycmccarthy
Copy link
Contributor Author

Makes sense, many thanks.

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

2 participants