ansible_cache/dnaclab_linux/reboot.yml

23 lines
623 B
YAML
Raw Normal View History

---
- name: Reboots linux host and checks status
hosts: kubernetes
become: yes
vars_files:
- global_vars/main.yml
tasks:
- name: Rebooting...
ansible.builtin.reboot:
reboot_timeout: 180
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 }}"
2023-03-15 12:13:51 +00:00
msg: "**Host {{ inventory_hostname }} has successfully rebooted.**"