--- - name: Reboots linux host and checks status hosts: all 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 }}" msg: "**Host {{ inventory_hostname }} has successfully rebooted.**"