cloudera-playbook
cloudera-playbook copied to clipboard
Playbook fails on cdh : Set_fact task
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]
#
[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.
Which ansible version do you use?
ansible 2.9.4
Seeing this with ansible 2.7.10 version as well on different environment.
For what its worth, tried and replicated also on 2.9.13 and 2.9.21