From 5b39dfb6fab73db265e8426cf108baf2894e8b01 Mon Sep 17 00:00:00 2001 From: Jan Beilicke Date: Thu, 26 Nov 2020 22:20:43 +0000 Subject: [PATCH] Do not run a health check against the service while in check mode --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index ecbb999..9d246c5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -127,8 +127,8 @@ chdir: /home/{{ docker_user }}/nextcloud/ - name: "Test whether Nextcloud is healthy from the outside" + when: not ansible_check_mode become: false - check_mode: no uri: url: "{{ nextcloud_overwrite_cli_url }}/login" return_content: yes