You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going through the Full Stack Python Deployment PDF. On page 137, I'm attempting to configure Twilio alerts on successful deployment. I have the following in my main.yml:
When I run deploy_prod.sh, I get an error that "post_twilio_api" is not defined.
TASK: [common | alert that deployment is complete] ****************************
failed: [<myip> -> localhost] => {"failed": true, "parsed": false}
Traceback (most recent call last):
File "/home/<myuser>/.ansible/tmp/ansible-tmp-1449278658.43-275151344117765/twilio", line 2515, in<module>main()
File "/home/<myuser>/.ansible/tmp/ansible-tmp-1449278658.43-275151344117765/twilio", line 123, in main
r, info = post_twilio_api(module, account_sid, auth_token, msg,
NameError: global name 'post_twilio_api' is not defined
FATAL: all hosts have already failed -- aborting
Tracing back that symbol, it appears to be a function call in the ansible module:
ansible/modules/extras/notification/twilio.py.
I'm running ansible versino 1.9.4, and Twilio support seems to be available in 1.6. Am I missing a module of some sort?
Thanks,
Kyle
The text was updated successfully, but these errors were encountered:
@kflavin yea, I'm able to replicate this as well. Not clear what's happening just from reading the source. I'll try with an older version of Ansible. I know there were some modifications made by the Ansible folks and it's possible some issue was inadvertently introduced along the way
I'm going through the Full Stack Python Deployment PDF. On page 137, I'm attempting to configure Twilio alerts on successful deployment. I have the following in my main.yml:
When I run deploy_prod.sh, I get an error that "post_twilio_api" is not defined.
Tracing back that symbol, it appears to be a function call in the ansible module:
ansible/modules/extras/notification/twilio.py.
I'm running ansible versino 1.9.4, and Twilio support seems to be available in 1.6. Am I missing a module of some sort?
Thanks,
Kyle
The text was updated successfully, but these errors were encountered: