even i have tried using the twilo still not able to get the output -

- hosts: localhost
  tasks:
    - name: Send notification message via twilio
      twilio:
        msg: 'Hello from Nishant via Ansible'
        account_sid: ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        auth_token: a0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        from_number: +918793127307
        to_number: +919168612880
      delegate_to: localhost

below is the error-

fatal: [localhost -> localhost]: FAILED! => {"changed": false, "failed": 
true, "msg": "Failed to validate the SSL certificate for 
api.twilio.com:443. Make sure your managed systems have a valid CA 
certificate installed. If the website serving the url uses SNI you need 
python >= 2.7.9 on your managed machine or you can install the urllib3, 
pyopenssl, ndg-httpsclient, and pyasn1 python modules to perform SNI 
verification in python >= 2.6. You can use validate_certs=False if you do 
not need to confirm the servers identity but this is unsafe and not 
recommended. Paths checked for this platform: /etc/ssl/certs, 
/etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, 
/usr/share/ca-certificates/cacert.org, /etc/ansible"}

On Tuesday, 23 May 2017 16:50:06 UTC+5:30, nishant bawane wrote:
>
>
> Below is the playbook which is used to send the messages to the registered 
> numbers using nexmo. Please suggests what needs to be done to overcome this 
> error - No which i used are registered one and same with the api inputs.
>
>  ---
>  - hosts: localhost
>    tasks:
>      - name: Send notification message via Nexmo
>        nexmo:
>       api_key: 640c8a53
>       api_secret: 0ce239a6
>       src: 8793161930
>       dest:
>         - 919168694888
>       msg: 'Hello from Ansible'
>       validate_certs: no
>     delegate_to: localhost
>
> Below is the playbook error -
>
> TASK [Send notification message via Nexmo] 
> ************************************
> fatal: [localhost -> localhost]: FAILED! => {"changed": false, 
> "failed":true, "msg": "One or messages failed to send", "responses": 
> {"919168694888": {"failed": true}}}
>     to retry, use: --limit @/home/capio/ansible/playbooks/sms.retry
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e95a5d57-a38d-4ba8-8a4b-ca90dad9321b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to