On 11.05.2018 22:42, js.a wrote:
> Ok guys, I got the point "--check doesn't make any changes to the
> system"
> after making more tests with tasks coupling (Task2 relies on previous
> executed Task1), --check mode will never work for these cases.
> Therefore, i
> will change my test pipeline to discard dry-run mode which has been
> thought
> to do a "Functional test".
An alternative to make check work involves some code changes.
You have "check_mode: no" to make a task run in check_mode.
You can also check if Ansible run in check mode to skip some task,
"when: not ansible_check_mode"
--
Kai Stian Olstad