Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29755

Trying to use the Ansible e-mail module to send an e-mail with ALL list data obtained from a python script (list can differ with each run)

$
0
0

The list that I obtain from my python script contains user data, and an inner list of choices they made. The structure of my list is like such: [[name, age, address, fav_car, fav_color, fav_movie, [choice1, choice2, choice2]], [name, age, address, fav_car, fav_color, fav_movie, [choice1, choice2, choice2]]]

Every week, my script runs one time and returns the list with however many users took the survey. It may be one user, or more, depending on how many users took the survey that week.

What I want to do now is call an ansible playbook from within my python script that makes use of the e-mail module and sends an e-mail to me with this list data in a table, with however many users were in the list that week.


Viewing all articles
Browse latest Browse all 29755

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>