Conflicting action statement in ansible

Question:

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:

Error message:

Answer:

Here is the problem, you have mixed up two tasks into one:

And out put of the playbook will be like this:

Hope that help you

Leave a Reply