Hello. I haven’t been able to find a satisfactory solution to the problem I am having.
The linter throws the following error: [parser-error] conflicting action statements: hosts, tasks
I am running ansible-lint 5.2.0 using ansible 2.11.5.
This is the playbook (https://docs.microsoft.com/en-us/azure/developer/ansible/vm-configure?tabs=ansible#clean-up-resources):
I should add that this problem also happens with the following example playbook:
https://docs.ansible.com/ansible/latest/user_guide/playbooks_intro.html#playbook-execution
But, only for the first play in the playbook.
The error seems to stem from the fact that I had it in a folders called tasks instead of a folder called playbook:
https://github.com/ansible-community/ansible-lint/issues/1471
Now the linter is working fine.