2017-06-14 18:34:46 +02:00
|
|
|
- name: Determine if server has tzutil.exe installed
|
|
|
|
win_command: tzutil.exe /l
|
|
|
|
register: tzutil
|
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
- name: Only run tests if tzutil.exe is installed
|
|
|
|
when: tzutil.rc == 0
|
|
|
|
block:
|
|
|
|
|
|
|
|
- name: Test in normal mode
|
2018-01-07 05:05:15 +01:00
|
|
|
import_tasks: tests.yml
|
2017-06-14 18:34:46 +02:00
|
|
|
vars:
|
|
|
|
in_check_mode: no
|
|
|
|
|
|
|
|
- name: Test in check-mode
|
2018-01-07 05:05:15 +01:00
|
|
|
import_tasks: tests.yml
|
2017-06-14 18:34:46 +02:00
|
|
|
vars:
|
|
|
|
in_check_mode: yes
|
|
|
|
check_mode: yes
|