I am learning ansible so I wrote the most simple playbook and module I could think of, and it failed.
My playbook
---
- hosts: demo
tasks:
- name: install demo
action: install
My module
echo "changed=True msg=OK"
The following seems fine :
- bash script mode is 755
- playbook is linked to module correctly
This is the output:
FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "changed=True msg=OK\r\n", "msg": "MODULE FAILURE", "parsed": false}
What am I doing wrong? How can I make this work?