1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

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
force: true
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