From ce5e4b12c68b378628f94b7aacabdec76da0b59a Mon Sep 17 00:00:00 2001 From: David Prevot Date: Mon, 12 Dec 2022 11:53:55 +0100 Subject: [PATCH] Apache: Drop duplicate when keys --- apache/tasks/main.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/apache/tasks/main.yml b/apache/tasks/main.yml index f6763278..acbde71c 100644 --- a/apache/tasks/main.yml +++ b/apache/tasks/main.yml @@ -62,10 +62,11 @@ loop: - cgi notify: reload apache - when: apache_mpm == "prefork" or apache_mpm == "itk" + when: + - apache_mpm == "prefork" or apache_mpm == "itk" + - not ansible_check_mode tags: - apache - when: not ansible_check_mode - name: Copy Apache defaults config file @@ -132,10 +133,11 @@ state: link force: yes notify: reload apache - when: apache_evolinux_default_enabled | bool + when: + - apache_evolinux_default_enabled | bool + - not ansible_check_mode tags: - apache - when: not ansible_check_mode - include: server_status.yml tags: @@ -158,10 +160,11 @@ ## Set umask for writing by Apache user. ## Set rights on files and directories written by Apache umask 007 - when: envvar_grep_umask.rc != 0 + when: + - envvar_grep_umask.rc != 0 + - not ansible_check_mode tags: - apache - when: not ansible_check_mode - include_role: name: evolix/remount-usr