W3cubDocs

/Ansible

nexmo - Send a SMS via nexmo

New in version 1.6.

Synopsis

Send a SMS message via nexmo

Options

parameter required default choices comments
api_key
yes
Nexmo API Key
api_secret
yes
Nexmo API Secret
dest
yes
Phone number(s) to send SMS message to
msg
yes
Message to text to send. Messages longer than 160 characters will be split into multiple messages
src
yes
Nexmo Number to send from
validate_certs
no yes
  • yes
  • no
If no, SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates.

Examples

- name: Send notification message via Nexmo
  local_action:
    module: nexmo
    api_key: 640c8a53
    api_secret: 0ce239a6
    src: 12345678901
    dest:
      - 10987654321
      - 16789012345
    msg: "{{ inventory_hostname }} completed"

This is an Extras Module

For more information on what this means please read Extras Modules

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, developing_test_pr and Developing Modules.

© 2012–2016 Michael DeHaan
© 2016 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/nexmo_module.html