Debian Codegraph @

ansible_collections/community/windows/tests/integration/targets/win_say/tasks/main.yml

raw
1 # CI hosts don't have a valid Speech package so we rely on check mode for basic
2 # sanity tests
3 ---
4 - name: Warn of impending deployment
5 win_say:
6 msg: Warning, deployment commencing in 5 minutes, please log out.
7 check_mode: "{{ win_say_check_mode |default('yes') }}"
8
9 - name: Using a specified voice and a start sound
10 win_say:
11 msg: Warning, deployment commencing in 5 minutes, please log out.
12 start_sound_path: C:\Windows\Media\ding.wav
13 voice: Microsoft Hazel Desktop
14 check_mode: "{{ win_say_check_mode |default('yes') }}"
15
16 - name: Example with start and end sound
17 win_say:
18 msg: New software installed
19 start_sound_path: C:\Windows\Media\Windows Balloon.wav
20 end_sound_path: C:\Windows\Media\chimes.wav
21 check_mode: "{{ win_say_check_mode |default('yes') }}"
22
23 - name: Create message file
24 ansible.windows.win_copy:
25 content: Stay calm and carry on
26 dest: C:\Windows\Temp\win_say_message.txt
27
28 - name: Text from file example
29 win_say:
30 msg_file: C:\Windows\Temp\win_say_message.txt
31 start_sound_path: C:\Windows\Media\Windows Balloon.wav
32 end_sound_path: C:\Windows\Media\chimes.wav
33 check_mode: "{{ win_say_check_mode |default('yes') }}"
34
35 - name: Remove message file
36 ansible.windows.win_file:
37 path: C:\Windows\Temp\win_say_message.txt
38 state: absent
39
40 - name: Different speech speed
41 win_say:
42 speech_speed: 5
43 msg: Stay calm and proceed to the closest fire exit.
44 check_mode: "{{ win_say_check_mode |default('yes') }}"