ansible-go icon indicating copy to clipboard operation
ansible-go copied to clipboard

Make this run in check mode

Open sr opened this issue 10 years ago • 0 comments

The role fails when it runs with ansible-playbook --check:

TASK: [joshualund.golang | Extract the Go tarball if Go is not yet installed or if it is not the desired version] *
**
fatal: [146.148.4.191] => error while evaluating conditional: not go_version|skipped and go_version|failed or go_ve
rsion.stdout != go_version_target

FATAL: all hosts have already failed -- aborting

This is because in check mode ansible doesn't execute commands and instead returns an object with a skipped attribute set to true.

sr avatar Dec 03 '15 23:12 sr