You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/win_say/tasks/main.yml

45 lines
1.4 KiB
YAML

# CI hosts don't have a valid Speech package so we rely on check mode for basic
# sanity tests
---
- name: Warn of impending deployment
win_say:
msg: Warning, deployment commencing in 5 minutes, please log out.
check_mode: "{{ win_say_check_mode |default('yes') }}"
- name: Using a specified voice and a start sound
win_say:
msg: Warning, deployment commencing in 5 minutes, please log out.
start_sound_path: C:\Windows\Media\ding.wav
voice: Microsoft Hazel Desktop
check_mode: "{{ win_say_check_mode |default('yes') }}"
- 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
check_mode: "{{ win_say_check_mode |default('yes') }}"
- 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
check_mode: "{{ win_say_check_mode |default('yes') }}"
- name: Remove message file
win_file:
path: C:\Windows\Temp\win_say_message.txt
state: absent
- name: Different speech speed
win_say:
speech_speed: 5
msg: Stay calm and proceed to the closest fire exit.
check_mode: "{{ win_say_check_mode |default('yes') }}"