Hi ,
I am a newbie to the ansible world and struggling with some errors I am trying to create switch configs based on the following url:
https://pynet.twb-tech.com/blog/ansible/ansible-cfg-template.htmlWhenever, I am running my yaml file, I see the following error:
ERROR! conflicting action statements
The error appears to have been in '/usr/share/ansible/NXS-TEMPLATE/roles/tor/tasks/main.yml': line 2, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
---
- name: Generate tor files
^ here
The error appears to have been in '/usr/share/ansible/NXS-TEMPLATE/roles/tor/tasks/main.yml': line 2, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
---
- name: Generate tor files
^ here
The file main.yml has the following contents:
---
- name: Generate tor files
template: src=tor.j2 dest="{{ item.hostname }}.txt"
with_items:
- hostname: nexus1
- hostname: nexus2
...
Thanks
GP