Hi,
I have a playbook which executes a local task from which I need the exit status in later steps:
- name: Get exit status of ./run.sh
local_action: command ./run.sh
register: ES
ignore_errors: yes
- name: Do something if ./run.sh failed
command:
....
when: ES.rc == 1
Unfortunately when "./run.sh" fails, ansible prints a whole bunch of diagnostic output to the screen, which I am not interested in.
How can I tell ansible *not* to print diagnostic error output of a specific step?
We are running ansible 2.3.0 0 on CentOS 7
Cheers
frank