1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/win_timezone/tasks/main.yml

20 lines
401 B
YAML
Raw Normal View History

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