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.html Whenever, 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 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/14af612f-c05a-4653-9db5-58ace01319ee%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
