mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
Role can be fully called in check mode
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user