diff --git a/tasks/prepare.yml b/tasks/prepare.yml index f414e60..7372184 100644 --- a/tasks/prepare.yml +++ b/tasks/prepare.yml @@ -21,6 +21,7 @@ executable: /bin/sh register: nginx_version changed_when: false + check_mode: no - name: SHELL | Get module list shell: nginx -V 2>&1 | tr -- - '\n' | grep -A 1 with | grep _module | sed -r 's/_module//g; s/\s+//g' | sort @@ -28,6 +29,7 @@ executable: /bin/sh register: shell_modules changed_when: false + check_mode: no - name: SET_FACT | Save modules set_fact: diff --git a/tasks/ssl.yml b/tasks/ssl.yml index d1cf61f..a7c85a3 100644 --- a/tasks/ssl.yml +++ b/tasks/ssl.yml @@ -49,4 +49,4 @@ register: job_result until: job_result.finished retries: 30 - when: nginx_dh is not string + when: not ansible_check_mode and nginx_dh is not string