Vote count:
0
I am going to make use of Ansible to provision my system in Google Compute Engine and the system has some manual created instances. One of the instances is named as testing-module.
Therefore I put this line in my playbook as a task something: {{ testing-module.private_ip }}
Ansible results me as fatal: [foo] => Unable to look up a name or access an attribute in template string. Make sure your variable name does not contain invalid characters like '-'.
The msg is telling me that the variable name in Ansible playbook cannot contain a hyphen. Question is the how can I reference to the private ip of testing-module?
asked 3 mins ago
GCE hostname with hyphen in Ansible
Aucun commentaire:
Enregistrer un commentaire