Fix check mode for binary download task

In check_mode, the binary download task depends on the execution of the
previous one, which uses the module shell to fill in a variable. In the
download binary task we use a field on that variable that does not exist
in check_mode, so the task fails.

Signed-off-by: L. Alberto Giménez <agimenez@sysvalve.es>
This commit is contained in:
L. Alberto Giménez 2020-05-10 22:35:05 +02:00 committed by Thomas Maurice
parent cdb6f4974d
commit 7e7626ed2a

View file

@ -18,7 +18,7 @@
mode: 0755 mode: 0755
force: true force: true
notify: "Restart gitea" notify: "Restart gitea"
when: (not gitea_version_check|bool) or (gitea_active_version.stdout != gitea_version) when: (not gitea_version_check|bool) or (not ansible_check_mode and (gitea_active_version.stdout != gitea_version))
- include: create_user.yml - include: create_user.yml