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

UndefinedError: 'ansible_fqdn' is undefined #39

Closed
sheldonh opened this issue Jul 9, 2015 · 5 comments
Closed

UndefinedError: 'ansible_fqdn' is undefined #39

sheldonh opened this issue Jul 9, 2015 · 5 comments
Labels

Comments

@sheldonh
Copy link

sheldonh commented Jul 9, 2015

This role is working wonderfully under ansible-1.9.1, thanks.

Just a heads up, though. It breaks with ansible-2.0.0 devel:

TASK [savagegus.consul : savagegus.consul : consul config file] *****************
fatal: [i-a001010a]: FAILED! => {"msg": "UndefinedError: 'ansible_fqdn' is undefined", "failed": true, "changed": false}
fatal: [i-a101010b]: FAILED! => {"msg": "UndefinedError: 'ansible_fqdn' is undefined", "failed": true, "changed": false}
fatal: [i-be010114]: FAILED! => {"msg": "UndefinedError: 'ansible_fqdn' is undefined", "failed": true, "changed": false}

The hosts in question were created by the ec2 module, and their hostgroup was created with the add_host module.

@bhavicp
Copy link

bhavicp commented Sep 14, 2015

I seem to be hitting this bug in the latest dlevel (14th Sep) I can't get fqdn or ipv4's

fatal: [apollo.obtrix.net]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleUndefinedVariable: ERROR! 'ansible_fqdn' is undefined"}
fatal: [apollo.obtrix.net]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleUndefinedVariable: ERROR! 'ansible_default_ipv4' is undefined"

@mattfinlayson
Copy link
Owner

I'm using on ansible 2.0 with ec2 without issue, anyone else able to reproduce?

@sheldonh
Copy link
Author

Nah, we're using Ansible 2.0 on EC2 too. Must have been one of many -devel regressions that got sorted out before release. :-)

@mattfinlayson
Copy link
Owner

Rad, thanks for the followup.

@NerrickT
Copy link

I have the same issue with 2.0.0.2. Did anyone find a fix?

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

No branches or pull requests

4 participants