# How to automate post deployment activity in Ansible

**URL:** <https://forum.ansible.com/t/how-to-automate-post-deployment-activity-in-ansible/22430>\
**Category:** Ansible Developer\
**Created:** [August 31, 2016, 1:39pm UTC](https://forum.ansible.com/t/how-to-automate-post-deployment-activity-in-ansible/22430 "2016-08-31T13:39:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinod\_kumar1](https://avatars.discourse-cdn.com/v4/letter/v/71c47a/32.png) [@vinod\_kumar1](https://forum.ansible.com/u/vinod_kumar1)\
**Post date:** [August 31, 2016, 1:39pm UTC](https://forum.ansible.com/t/how-to-automate-post-deployment-activity-in-ansible/22430/1 "2016-08-31T13:39:34Z")

</div>

Dear All,

How to automate post deployment activity in Ansible? We have module URI but only for limited call [http://docs.ansible.com/ansible/uri\_module.html](http://docs.ansible.com/ansible/uri_module.html).

In more details:

1. Want to login into gmail  
1.1 Open the [http://gamil.com](http://gamil.com)  
1.2 Enter the user name and password  
1.3 Click on the submit button  
1.4 Open the email tab then  
1.5 Compose the email  
1.6 Attach some file in that email  
1.7 add body text as template and to list  
1.8 Click the sent email  
1.9 If possible the trace the success and failure.

Want to do in Ansible and track the success and failure. Will it possible?

We have though to use the selenium but for that we have to write script every time for diff diff activity which will cause the deliverable…

Thanks for your answer. I’m big fan of Ansible and looking for something spacial.

---

<div class="post-metadata">

**Author:** ![Drew\_Russell](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@Drew\_Russell](https://forum.ansible.com/u/Drew_Russell)\
**Post date:** [August 31, 2016, 4:49pm UTC](https://forum.ansible.com/t/how-to-automate-post-deployment-activity-in-ansible/22430/2 "2016-08-31T16:49:40Z")

</div>

Have you looked at the [mail module](https://docs.ansible.com/ansible/mail_module.html) ?
