Role can be fully called in check mode

pull/35/head
Emilien Mantel 2017-06-01 11:38:22 +02:00
parent cbdfc741ba
commit 3ae791ec47
2 changed files with 3 additions and 1 deletions

View File

@ -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:

View File

@ -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