2018-09-10 22:23:46 +00:00
|
|
|
# CI hosts don't have a valid Speech package so we rely on check mode for basic
|
|
|
|
# sanity tests
|
|
|
|
---
|
2017-06-28 20:28:44 +00:00
|
|
|
- name: Warn of impending deployment
|
|
|
|
win_say:
|
|
|
|
msg: Warning, deployment commencing in 5 minutes, please log out.
|
2018-11-18 21:07:12 +00:00
|
|
|
check_mode: "{{ win_say_check_mode |default('yes') }}"
|
2017-06-28 20:28:44 +00:00
|
|
|
|
2018-11-18 21:07:12 +00:00
|
|
|
- name: Using a specified voice and a start sound
|
2017-06-28 20:28:44 +00:00
|
|
|
win_say:
|
|
|
|
msg: Warning, deployment commencing in 5 minutes, please log out.
|
|
|
|
start_sound_path: C:\Windows\Media\ding.wav
|
|
|
|
voice: Microsoft Hazel Desktop
|
2018-11-18 21:07:12 +00:00
|
|
|
check_mode: "{{ win_say_check_mode |default('yes') }}"
|
2017-06-28 20:28:44 +00:00
|
|
|
|
|
|
|
- name: Example with start and end sound
|
|
|
|
win_say:
|
|
|
|
msg: New software installed
|
|
|
|
start_sound_path: C:\Windows\Media\Windows Balloon.wav
|
|
|
|
end_sound_path: C:\Windows\Media\chimes.wav
|
2018-11-18 21:07:12 +00:00
|
|
|
check_mode: "{{ win_say_check_mode |default('yes') }}"
|
2017-06-28 20:28:44 +00:00
|
|
|
|
|
|
|
- name: Create message file
|
|
|
|
win_copy:
|
|
|
|
content: Stay calm and carry on
|
|
|
|
dest: C:\Windows\Temp\win_say_message.txt
|
|
|
|
|
|
|
|
- name: Text from file example
|
|
|
|
win_say:
|
|
|
|
msg_file: C:\Windows\Temp\win_say_message.txt
|
|
|
|
start_sound_path: C:\Windows\Media\Windows Balloon.wav
|
|
|
|
end_sound_path: C:\Windows\Media\chimes.wav
|
2018-11-18 21:07:12 +00:00
|
|
|
check_mode: "{{ win_say_check_mode |default('yes') }}"
|
2017-06-28 20:28:44 +00:00
|
|
|
|
|
|
|
- name: Remove message file
|
|
|
|
win_file:
|
|
|
|
path: C:\Windows\Temp\win_say_message.txt
|
|
|
|
state: absent
|
|
|
|
|
2018-11-18 21:07:12 +00:00
|
|
|
- name: Different speech speed
|
2017-06-28 20:28:44 +00:00
|
|
|
win_say:
|
|
|
|
speech_speed: 5
|
|
|
|
msg: Stay calm and proceed to the closest fire exit.
|
2018-11-18 21:07:12 +00:00
|
|
|
check_mode: "{{ win_say_check_mode |default('yes') }}"
|