ansible_cache/linux_ubuntu/reboot.yml

22 lines
579 B
YAML
Raw Normal View History

---
- name: Reboots linux host and checks status
hosts: all
roles:
- common
become: yes
tasks:
- name: Rebooting...
reboot:
reboot_timeout: 60
msg: Reboot issued by Ansible
2022-05-07 15:54:22 +00:00
test_command: whoami
- name: Send Webex Teams message via BOT to confirm playbook completion
community.general.cisco_webex:
recipient_type: toPersonEmail
recipient_id: "{{ webex_id }}"
msg_type: markdown
personal_token: "{{ webex_token }}"
msg: "**Host {{ inventory_hostname }} has successfully rebooted.**"