futuresystems / big-data-stack

Hadoop-based Big Data stack (hdfs, yarn, spark, etc)
Apache License 2.0
6 stars 17 forks source link

generation of /etc/hosts file fails #60

Open kjaugustin opened 8 years ago

kjaugustin commented 8 years ago

The play-hadoop.yml play book fails to generate /etc/hosts file. Please refer to the common roles. The error message indicate a possible issue in getting ansible_eth0.ipv4.address. fatal: [master1]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute u'ansible_eth0'"} fatal: [master0]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute u'ansible_eth0'"}

kuma4944 commented 6 years ago

@kjaugustin what is your OS..I got the same problem today and it looks like in Cent OS 7 the network interfaces are different. In my system its coming as em1 to em5