ansible/test/integration/targets/win_timezone/tasks/main.yml
2018-01-07 14:05:15 +10:00

19 lines
411 B
YAML

- 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
import_tasks: tests.yml
vars:
in_check_mode: no
- name: Test in check-mode
import_tasks: tests.yml
vars:
in_check_mode: yes
check_mode: yes