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 :


******************************************************************************

  - name: checking status of Inbound Instance
    command: postmulti -i postfix-in-1 -p status
    register: result
    ignore_errors: yes
    changed_when: False
    become: yes

  - name: showing in-1 status
    debug:
     var: result.stdout


  - name: checking status of Outbound Instance
    shell: /usr/sbin/postmulti -i postfix-out-1 -p status
    register: result2
    become: yes
    changed_when: False
  - debug: msg="{{ result2.stdout }}"


*******************************************************************************

i am expecting an output like this , which normally gets written to screen 
when run on the server :

postfix-in-1/postfix-script: the Postfix mail system is running: PID: 8218
postfix-out-1/postfix-script: the Postfix mail system is running: PID: 7321

but ansible playbook has a null stdout or stdout_lines .

any suggestions appreciated : ) .

-- 
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/81645deb-3708-4025-b226-d4296f4ad63f%40googlegroups.com.

Reply via email to