Twilio

Use your Twilio account to send an SMS message directly from your Ansible playbook, as follows:

- name: Send an SMS message using Twilio  twilio:    msg: "The task has completed and all is well"    account_sid: "{{ twilio.account }}"    auth_token: "{{ twilio.auth }}"    from_number: "{{ twilio.from_mumber }}"    to_number: "+44 7911 123456"  delegate_to: localhost

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.