23 janvier 2018 13:07 "Jayashri Garud" a écrit:
Hi,
I have a playbook for deployment . In which I have a task which execute script
to extract artifacts. I am using jenkins server to run ansible. while running
this playbook it is throwing error like "MODULE FAILURE".
deployment.yml
- run deployment script
command: /path/to/my/script/.sh
error:
FAILED! => {"changed": false, "failed": true, "module_stderr": "",
"module_stdout": "", "msg": "MODULE FAILURE", "parsed": false}
ansible version -2.0.0
Try this :
- name: run deployment script
command: /path/to/my/script/.sh
Explanations :
You forget to add "name" before describiing the action.... So ansible try to
interpret "run" as a module
Be careful about indentations
Regards,
JYL
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/a115e58a4bf6968a6f500898763375a7%40wwws.lenhof.eu.org.
For more options, visit https://groups.google.com/d/optout.