ansible_cache/dnaclab_linux/reboot.yml

22 lines
579 B
YAML

---
- 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
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.**"