Newbie and seeing error on running yaml file to create switch config

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:

Your indentation is wrong, change it to the following,

I still see the same error after correcting the indentation as shown below:

more roles/tor/tasks/main.yml

To help get the indentation right, I rely on Visual Studio Code with the yaml extension https://marketplace.visualstudio.com/items?itemName=djabraham.vscode-yaml-validation

Since this seams to be correct your problem must be inn another file, maybe your playbook?