ansible-rundeck/examples/playbooks/windows_samples.yaml
Marc Ahlgrim 36dddd6f03 added examples
Signed-off-by: Marc Ahlgrim <marc@onemarcfifty.com>
2022-09-01 08:41:26 +02:00

32 lines
823 B
YAML

---
# ##############################################
# Some samples how to use ansible on Windows
# targets see here for documentation:
# https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html
# ##############################################
- name: Some Windows Tests
hosts: all
become: false
gather_facts: true
tasks:
- name: send message to users
win_msg:
msg: "hello from Ansible !"
update_cache: yes
- name: Print all available facts
ansible.builtin.debug:
var: ansible_facts
- name: Speech Test
win_say:
start_sound_path: C:\Windows\Media\Windows Balloon.wav
msg: "Nur ein Test für die Sprachausgabe"
end_sound_path: C:\Windows\Media\chimes.wav
- name: Get whoami information
win_whoami: