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

Playbook fails on cdh : Set_fact task #62

Open
rkharya opened this issue Jan 29, 2020 · 3 comments
Open

Playbook fails on cdh : Set_fact task #62

rkharya opened this issue Jan 29, 2020 · 3 comments

Comments

@rkharya
Copy link

rkharya commented Jan 29, 2020

Error is -

fatal: [cld1.cisco.local]: FAILED! => {
"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute u'cld5.cisco.local'\n\nThe error appears to be in '/root/cloudera-playbook/roles/cdh/tasks/main.yml': line 40, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# https://www.cloudera.com/documentation/enterprise/latest/topics/install_cluster_template.html\n- set_fact:\n ^ here\n"
}

where cld1.cisco.local is SCM host.
Host file used for this deployment -

[scm_server]
cld1.cisco.local

[db_server]
cld1.cisco.local

[krb5_server]
cld1.cisco.local

[utility_servers:children]
scm_server
db_server
krb5_server

[gateway_servers]
cld1.cisco.local host_template=HostTemplate-Gateway

#[edge_servers]
# host_template=HostTemplate-Edge role_ref_names=HDFS-HTTPFS-1

[master_servers]
cld5.cisco.local host_template=HostTemplate-Master1
cld6.cisco.local host_template=HostTemplate-Master2
cld7.cisco.local host_template=HostTemplate-Master3

[worker_servers]
cld2.cisco.local
cld3.cisco.local
cld4.cisco.local

[worker_servers:vars]
host_template=HostTemplate-Workers

[cdh_servers:children]
utility_servers
gateway_servers
master_servers
worker_servers

#[all:vars]
#ansible_user=ec2-user

Let us know if this issue has been seen earlier and there are any fixes and/or work-around available.

Thanks,

  • Rajesh.
@neizmirasego
Copy link

Which ansible version do you use?

@rkharya
Copy link
Author

rkharya commented Feb 19, 2020

ansible 2.9.4

Seeing this with ansible 2.7.10 version as well on different environment.

@prokod
Copy link

prokod commented May 20, 2021

For what its worth, tried and replicated also on 2.9.13 and 2.9.21

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

No branches or pull requests

3 participants