community.docker.docker_container_exec error handling

39 views
Skip to first unread message

Tony

unread,
May 19, 2022, 12:51:09 PM5/19/22
to Ansible Project
Hi all,

Provision docker instance > Get application code > Run some tests

I am currently creating a CICD pipeline for an application. Before we build the application, we run some scala tests using sbt.

Some of the test cases are written to fail thus produce error messages and I am finding the playbook fails as it detects these "errors".

Does anyone have any idea on how one should handle this?

Cheers

Felix Fontein

unread,
May 19, 2022, 2:32:15 PM5/19/22
to ansible...@googlegroups.com
Hi,

you probably want to search for `failed_when` in the ansible-core
documentation.

Cheers,
Felix
Reply all
Reply to author
Forward
0 new messages