naftulikay / ansible-role-degoss

An Ansible role for installing, running, and removing Goss from a system without leaving any traces.
Other
42 stars 12 forks source link

On degoss : run tests, If Tests Failed, Don't Show Output #18

Closed naftulikay closed 7 years ago

naftulikay commented 7 years ago
TASK [degoss : run tests] ******************************************************
ok: [localhost]

F..

Failures/Skipped:

File: /dev: exists:
Expected
    <bool>: true
to equal
    <string>: True

Total Duration: 0.061s
Count: 3, Failed: 1, Skipped: 0

TASK [degoss : clean] **********************************************************
skipping: [localhost]

TASK [degoss : report errors] **************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Goss Tests Failed."}

F..

Failures/Skipped:

File: /dev: exists:
Expected
    <bool>: true
to equal
    <string>: True

Total Duration: 0.061s
Count: 3, Failed: 1, Skipped: 0

PLAY RECAP *********************************************************************
localhost                  : ok=13   changed=0    unreachable=0    failed=1

Duplicated data.