Hi, here debug:
stdout is empty, why??
TASK [debug]
***************************************************************************************************************************************
ok: [schedule01-stage] => {
"mysql_exist": {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": true,
"cmd": "mysql -hhost uuser -ppass -e \"show databases\" | egrep db_app\n",
"delta": "0:00:00.019964",
"end": "2022-02-09 18:45:39.611461",
"failed": false,
"rc": 0,
"start": "2022-02-09 18:45:39.591497",
"stderr": "",
"stderr_lines": [],
"stdout": "0",
"stdout_lines": [
"0"
],
"warnings": [
"Platform linux on host schedule01-stage is using the discovered Python
interpreter at /usr/bin/python, but future installation of another Python
interpreter could change this. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html
for more information."
]
}
}
On Wed, Feb 9, 2022 at 2:42 PM Brian Coca <[email protected]> wrote:
> You don't show the output/result of the mysql task so it is very hard
> to figure out what happend with it, but the debug shows stdout is
> empty, but not stderr which is what you have in the failed_when
> --
> ----------
> Brian Coca
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CACVha7ccPwpLF_dQS2b0w2mOzH1P5H6vzFht1m4Tnipxa2M20g%40mail.gmail.com
> .
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAGUDtnm3cxJ4ENTA1VanoRW%3DpuOkYoH6aA5Ng5b8fanX1nCR3g%40mail.gmail.com.