On Thu, Jan 14, 2021 at 03:25:59PM +0800, Lu Weitao wrote:
On Thu, Jan 14, 2021 at 03:19:41PM +0800, Zhang Yale wrote:
[Why] Output needs to be displayed in the stats.json file, so this output need to processed as a key-value pair.
[input] PLAY RECAP ********************************************************************* localhost : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
playbook_run_on_fail: 1
[output] ansible_test.total.nr_ok: 2 ansible_test.total.nr_changed: 0 ansible_test.total.nr_failed: 1 ansible_test.total.nr_skipped: 0 ansible_test.total.nr_rescued: 0 ansible_test.total.nr_ignored: 0 playbook_run_on_fail: 1
playbook_run_on_fail: 1 => ansible_test.playbook_run_on_fail: 1 ?
Thanks, Weitao
This can be ok.
Thanks, Yale