debug: msg="{{ commit error }}"
On 01/31/2014 11:55 AM, David Gethings wrote:
Hi,
I am working with a custom module. Sometimes it returns an error that I
want to capture and then act on in another task. I have a register set
and ignore_errors set to True in the playbook. However the msg returned
is being truncated to I cannot perform a 'when' conditional on its value.
Below output is returned by a custom module:
ok: [capella] => {"failure": true, "item": "", "msg":
"[{:severity=>\"error\",\n :message=>\n \"WARNING: Chassis
configuration for network services has been changed. A system reboot is
mandatory. Please reboot the system NOW. Continuing without a reboot
might result in unexpected system behavior.\"}]\n"
This action is in a playbook:
action: debug msg={{ commit_error }}
Which produces this output (when using -vvv):
ok: [capella] => {
"item": "",
"msg": "{umsg:"
}
Any ideas why this is happening?
--
Cheers
Dg
--
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].
For more options, visit https://groups.google.com/groups/opt_out.
--
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].
For more options, visit https://groups.google.com/groups/opt_out.