Dear all,
I have a role which is common to the app side, and then the app side needs to define a Map variable in their own playbooks.
- In the common role, the template file will generate the corresponding configuration with the Map variable? But I got the error:
TASK [max-daemon : Create Property file] ***********************************
fatal: [localhost]: FAILED! => {“changed”: false, “failed”: true, “msg”: “AnsibleUndefinedVariable: ‘ansible.parsing.yaml.objects.AnsibleUnicode object’ has no attribute ‘iteritems’”}
to retry, use: --limit @/home/hadoop/app1//ansible/playbooks/MaxDemo.retry
- The variable name is not defined in the common role vars, the expectation is to make the app side takes the full responsibility
Please advice what is the problem here.
Thanks,