You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
The docker test has been failing in a couple of streams because docker-latest is intentionally removed. Ideally the test should be skipped and not report a failure, however Ansible is not very straight forward.
I found meta: end_play that can conditionally end the play without failing. The caveat is that that it needs to be run in every play. In the docker test there is only two or three test so its not that bad. Any thoughts on this?
Before:
PLAY [Docker - Setup] **********************************************************
TASK [setup] *******************************************************************
ok: [rhelah]
TASK [Check for docker-latest package if running against docker-latest] ********
changed: [rhelah] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"}
[WARNING]: Consider using yum, dnf or zypper module rather than running rpm
TASK [Fail if docker latest is not installed] **********************************
fatal: [rhelah]: FAILED! => {
"changed": false,
"failed": true
}
MSG:
---
This test is not valid because docker-latest is not installed
---
PLAY RECAP *********************************************************************
rhelah : ok=2 changed=1 unreachable=0 failed=1
After:
PLAY [Docker - Setup] **********************************************************
TASK [setup] *******************************************************************
ok: [rhelah]
TASK [Check for docker-latest package if running against docker-latest] ********
changed: [rhelah] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"}
[WARNING]: Consider using yum, dnf or zypper module rather than running rpm
TASK [set not_installed] *******************************************************
ok: [rhelah] => {
"ansible_facts": {
"not_installed": true
},
"changed": false
}
PLAY [Docker - Functional Tests] ***********************************************
TASK [setup] *******************************************************************
ok: [rhelah]
PLAY [Docker - Cleanup] ********************************************************
TASK [setup] *******************************************************************
ok: [rhelah]
PLAY RECAP *********************************************************************
rhelah : ok=5 changed=1 unreachable=0 failed=0
The text was updated successfully, but these errors were encountered:
The docker test has been failing in a couple of streams because docker-latest is intentionally removed. Ideally the test should be skipped and not report a failure, however Ansible is not very straight forward.
I found
meta: end_play
that can conditionally end the play without failing. The caveat is that that it needs to be run in every play. In the docker test there is only two or three test so its not that bad. Any thoughts on this?Before:
After:
The text was updated successfully, but these errors were encountered: