This is my playbook and while running I’m getting the error which is in subject line.
Can someone know what could be the issue?
This is my playbook and while running I’m getting the error which is in subject line.
Can someone know what could be the issue?
It needs to be indented inside a 'tasks:' keyword of the play to be
recognized as a task.
The error indicates you are in 'play' context so it is invalid there.