-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
when conditional evaluating to false, undefined dict variables in with_items receive error #11964
Comments
Possible MisunderstandingHi! Thanks very much for your submission to Ansible. It sincerely means a lot to us. We believe the ticket you have filed is being somewhat misunderstood, as one thing works a little differently than stated.
In the future, this might be a topic more well suited for the user list, which you can also post here if you'd like some more help with the above. Thank you once again for this and your interest in Ansible! |
this prevents the task "remove suid/sgid bit from all binaries except in system and user whitelist" from failing when the suid-var is not set and `os_security_suid_sgid_remove_from_unknown` is not set either. See: ansible/ansible#11964
this prevents the task "remove suid/sgid bit from all binaries except in system and user whitelist" from failing when the suid-var is not set and `os_security_suid_sgid_remove_from_unknown` is not set either. See: ansible/ansible#11964
Issue Type: Bug Report
Ansible Version: ansible 2.0.0
Ansible Configuration: clean
Environment: Fedora 22
Summary:
Variables in
with_items
are checked withwhen
statement evaluating to false.Steps To Reproduce:
With
INSTANCE_CREATION
set to false, i get an error with this part of a playbook:Expected Results:
When
INSTANCE_CREATION
is false the variablesec2test_instances
andec2apphost_instance
wont get registered and the "add all instances to ec2-host group" task should be skipped without error.Actual Results:
I receive the following error:
The text was updated successfully, but these errors were encountered: