The line ansible localhost -m file -a "path=/ansible state=directory"
is wrong (if run on directly on host) as one is trying to write to the root directory, and will return a permission denied error. The line ansible localhost -m file -a "path=./ansible state=directory"
would be more appropriate. However, then the output example would be incorrect (owner is root in example).
Good step by step through ansible so far with a few quirks. I think the course is missing a few key stages, such as installing ansible on a host. It makes a few leaps where I was left wondering if I missed a page.
Type your question above this line.
Course: https://www.educative.io/collection/10370001/5161609486925824
Lesson: https://www.educative.io/collection/page/10370001/5161609486925824/6310090995400704