2017-06-14 16:34:46 +00: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 04:05:15 +00:00
|
|
|
import_tasks: tests.yml
|
2017-06-14 16:34:46 +00:00
|
|
|
vars:
|
|
|
|
in_check_mode: no
|
|
|
|
|
|
|
|
- name: Test in check-mode
|
2018-01-07 04:05:15 +00:00
|
|
|
import_tasks: tests.yml
|
2017-06-14 16:34:46 +00:00
|
|
|
vars:
|
|
|
|
in_check_mode: yes
|
|
|
|
check_mode: yes
|