Why doesn't debug get me the output of these commands

Hello All ,

I am trying to run a playbook that gets me the status of Postfix instances running on an email relay server.

my playbook looks like this :

Which command did you run, and what output did you get from that (copied as text, not as images/attachments/screenshots)?

Thanks for your response , if i run this command on email relay server running postfix

" postmulti -i postfix-in-1 -p status " >> it gives me the following output >> " postfix-in-1/postfix-script: the Postfix mail system is running: PID: 8218 "

this tells me the instance is running , now i wanted my playbook to run the same command on the server and capture the output .

I basically wanted to run this playbook on a group of mail servers to check if postfix instance is running .

Ty.

My ansible playbook output is like this :

ok: [192.x.x.x] => {
“msg”: “”
}
ok: [192.x.x.x] => {
“msg”: “”
}
ok: [192.x.x.x] => {
“msg”: “”
}
ok: [192.x.x.x] => {
“msg”: “”
}

so it tells me the command is executed but doesn’t capture the output of the command as stdout.

Thanks for your response , if i run this command on email relay server running postfix

" postmulti -i postfix-in-1 -p status " >> it gives me the following output >> " postfix-in-1/postfix-script: the
Postfix mail system is running: PID: 8218 "

this tells me the instance is running , now i wanted my playbook to run the same command on the server and capture the
output .

I basically wanted to run this playbook on a group of mail servers to check if postfix instance is running .

Ty.

For some reason postmulti's output is sent to stderr instead of stdout.

Regards
          Racke

Remove changed_when and run playbook …