I'm used to see Ansible examples as:
- file: path=/tmp/file state=touch
Run Code Online (Sandbox Code Playgroud)
but someone at work told me that I should be consistent using only YAML syntax like this:
- file:
path: /tmp/file
state: touch
Run Code Online (Sandbox Code Playgroud)
or,
- file: {path: /tmp/file, state:touch}
Run Code Online (Sandbox Code Playgroud)
Which one satisfies Ansible best practices?