cisco_webex
Send a message to a Cisco Webex Teams Room or Individual
Collection: community.general
Full Name: community.general.cisco_webex
Synopsis
Send a message to a Cisco Webex Teams Room or Individual
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| msg | string | yes | The message you would like to send. | |
| msg_type | string | text | Specifies how you would like the message formatted. | |
| personal_token | string | yes | Your personal access token required to validate the Webex Teams API. | |
| recipient_id | string | yes | The unique identifier associated with the supplied O(recipient_type). | |
| recipient_type | string | yes | The request parameter you would like to send the message to. Messages can be sent to either a room or individual (by ID or E-Mail). |
Example
yaml
- name: Cisco Webex Teams - Markdown Message to a Room
community.general.cisco_webex:
recipient_type: roomId
recipient_id: "{{ room_id }}"
msg_type: markdown
personal_token: "{{ token }}"
msg: "**Cisco Webex Teams Ansible Module - Room Message in Markdown**"
- name: Cisco Webex Teams - Text Message to a Room
community.general.cisco_webex:
recipient_type: roomId
recipient_id: "{{ room_id }}"
msg_type: text
personal_token: "{{ token }}"
msg: "Cisco Webex Teams Ansible Module - Room Message in Text"
- name: Cisco Webex Teams - Text Message by an Individuals ID
community.general.cisco_webex:
recipient_type: toPersonId
recipient_id: "{{ person_id}}"
msg_type: text
personal_token: "{{ token }}"
msg: "Cisco Webex Teams Ansible Module - Text Message to Individual by ID"
- name: Cisco Webex Teams - Text Message by an Individuals E-Mail Address
community.general.cisco_webex:
recipient_type: toPersonEmail
recipient_id: "{{ person_email }}"
msg_type: text
personal_token: "{{ token }}"
msg: "Cisco Webex Teams Ansible Module - Text Message to Individual by E-Mail"