# Ansible error when running yml file for network switch

**URL:** <https://forum.ansible.com/t/ansible-error-when-running-yml-file-for-network-switch/21745>\
**Category:** Ansible Project\
**Created:** [June 12, 2016, 4:40am UTC](https://forum.ansible.com/t/ansible-error-when-running-yml-file-for-network-switch/21745 "2016-06-12T04:40:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ansnewbie2016](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@ansnewbie2016](https://forum.ansible.com/u/ansnewbie2016)\
**Post date:** [June 12, 2016, 4:40am UTC](https://forum.ansible.com/t/ansible-error-when-running-yml-file-for-network-switch/21745/1 "2016-06-12T04:40:52Z")

</div>

Hi,  
I am relatively new to Ansible and exploring the feature as best as I can. I am trying to build the Nexus 9000 series switch config based off the following website:

[https://pynet.twb-tech.com/blog/ansible/ansible-cfg-template.html](https://pynet.twb-tech.com/blog/ansible/ansible-cfg-template.html)

Whenever, I am trying to execute the site.yml file, I see the following error:

ansible-playbook site.yml  
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:
