Following in yaml of Playbook which I am run from AWX Ansible.
---
- hosts: all
remote_user: root
tasks:
- copy:
content: "My content"
dest: "01.txt"
But getting following exception:-
Cannot parse as JSON (error: No JSON object could be decoded) or YAML (error: Input type `list` is not a dictionary).
Can anyone help on this?