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:
parent
cdb6f4974d
commit
7e7626ed2a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue