I am getting the following error : Conflicting action statement in ansible
.
I tried to understand, my code seems to be correct. I declared the name correctly though it gives an error in the task name.
Playbook:
---
- hosts: webhost
sudo: yes
connection: ssh
tasks:
- name: debuging module
shell: ps aux
register: output
debug: var=output
Error message:
ERROR! conflicting action statements
The error appears to have been in '/home/test/playbooks/debug.yml': line 7, column 7, but may be present elsewhere in the file depending on the exact syntax problem.
The offending line appears to be here:
tasks:
- name: debuging module
^ here