what's wrong with this?

what’s wrong with this?

You have syntax errors. I recommend using a site like yamllint.com to make sure your playbooks are valid yaml when you are first getting used to ansible syntax.

Try this instead

`

https://github.com/willthames/ansible-lint is also nice, and includes Ansible-specific best-practices suggestions as well.

Thanks!

But this is what I was doing. I don’t know how this is any different.

Got it! The two hyphens below the file module statement. Fixed it. Thanks again!