Note
This module is part of the community.general collection (version 10.7.3).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.general.
To use it in a playbook, specify: community.general.cisco_webex.
Aliases: cisco_spark
Parameter | Comments |
|---|---|
msg string / required | The message you would like to send. |
msg_type aliases: message_type string | Specifies how you would like the message formatted. Choices:
|
personal_token aliases: token string / required | Your personal access token required to validate the Webex Teams API. |
recipient_id string / required | The unique identifier associated with the supplied |
recipient_type string / required | 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). Choices:
|
Attribute | Support | Description |
|---|---|---|
check_mode | Support: full | Can run in |
diff_mode | Support: none | Will return details on what has changed (or possibly needs changing in |
Note
recipient_type must be valid for the supplied recipient_id.# Note: The following examples assume a variable file has been imported
# that contains the appropriate information.
- 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"
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
message string | The Response Message returned by the Webex Teams API. Full Response Code explanations can be found at https://developer.webex.com/docs/api/basics. Returned: always Sample: |
status_code integer | The Response Code returned by the Webex Teams API. Full Response Code explanations can be found at https://developer.webex.com/docs/api/basics. Returned: always Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/cisco_webex_module.html