Did not find expected key while parsing a block mapping

Question:

Am running ansible play-book but getting below error, -using ansible 2.7.6, ubuntu 16.04.
in playbook am mentioned

I tried without become-yes,ubuntu,sudo that also getting the same issue and ansible saying:

Answer:

Indentation is wrong. Correct syntax is

Leave a Reply