This repository has been archived by the owner on May 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
AnsibleUndefinedVariable #135
Comments
create a file called main.yml in roles/tomcat/vars and include ' http_port=<port_no.>' |
@rashbhat : how can i pass the host info using dynamic inventory? any thoughts? #ansible-pull -d /home/gvenka008c/reponame --key-file=/home/users/rsa.id -U git@github.com:reponame.git playbook.yml [WARNING]: provided hosts list is empty, only localhost is available |
I created file under create a file called main.yml in roles/tomcat/vars . Please help me to fix this error! |
Hi, I have resolved the issue as below
|
Thanks It worked :) |
syamv -I faced the same issue and followed the same which you posted above. issue no more persisting.. but wanted to know why it is not taking the vars from group_vars folder wanted to know that can some one explain me |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello all,
I have following error when I apply playbook for each one
{'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'http_port' is undefined", 'failed': True}
Could you please explain how to configure those variables ? It would be great to add a note in the readme.
Thanks for help
The text was updated successfully, but these errors were encountered: