-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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: evaluation doesn't like variables containing "-" (dashes) #8849
Comments
Hi, |
Right ;) 10x. |
Possible MisunderstandingHi! Thanks very much for your submission to Ansible. We believe the ticket you have filed is being somewhat misunderstood, as one thing works a little differently than stated. The problem you are experiencing is due to the fact that variable names cannot include dashes. Please see http://docs.ansible.com/playbooks_variables.html#what-makes-a-valid-variable-name for details on variable naming. 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! |
Pull request [1] introduce a bug when the accessing to redis-confs.cluster-config-file was done incorrectly. Since dashes are reserved characters, the accessing should be done in the "dictionary" way Submitting it as part of fix idealista#30 [1] idealista#31 [2] ansible/ansible#8849
Pull request [1] introduce a bug when the accessing to redis-confs.cluster-config-file was done incorrectly. Since dashes are reserved characters, the accessing should be done in the "dictionary" way [1] idealista#31 [2] ansible/ansible#8849
ansible/ansible#8849 tag molecule_notest without dash
Issue Type:
Bug Report
Ansible Version:
ansible 1.8 (devel 9edf3a7) last updated 2014/08/13 09:45:46 (GMT +200)
Environment:
Host is FC19 and Target is Wheezy 7.5
Summary:
In a task, upon using the 'when' functionality, the evaluation of the condition doesn't work if a variable contains the dash char in its name.
Steps To Reproduce:
Expected Results:
Task gets applied on host that has the variable php-be defined.
Actual Results:
This only works for hosts phpfe and nginx.
When I change php-be to php_be, it works like a charm.
The text was updated successfully, but these errors were encountered: