# Feature: ansible-pull server daemon

**URL:** <https://forum.ansible.com/t/feature-ansible-pull-server-daemon/17305>\
**Category:** Ansible Developer\
**Created:** [January 18, 2015, 3:33pm UTC](https://forum.ansible.com/t/feature-ansible-pull-server-daemon/17305 "2015-01-18T15:33:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stavros\_Korokithakis](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Stavros\_Korokithakis](https://forum.ansible.com/u/Stavros_Korokithakis)\
**Post date:** [January 18, 2015, 3:33pm UTC](https://forum.ansible.com/t/feature-ansible-pull-server-daemon/17305/1 "2015-01-18T15:33:57Z")

</div>

I use ansible-pull regularly, and I use 5-minute intervals to check. This is inefficient 99% of the time, where I haven’t committed anything, and slow when i do commit and wait for a deployment. It would be far easier if ansible could listen to a webhook from Github/Bitbucket and deploy when that triggered.

To that end, I would like to add a --daemon option to ansible-pull. It would work like so:

ansible-pull --daemon

or

ansible-pull --daemon=http://://

It would launch a daemon listening on a specific port and endpoint, and run the playbook whenever it triggered (with some sort of cooldown delay).

What do you think? I can develop this soon and send you a PR if it’s agreeable.

---

<div class="post-metadata">

**Author:** ![Jesse\_Keating](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@Jesse\_Keating](https://forum.ansible.com/u/Jesse_Keating)\
**Post date:** [January 18, 2015, 7:27pm UTC](https://forum.ansible.com/t/feature-ansible-pull-server-daemon/17305/2 "2015-01-18T19:27:09Z")

</div>

Sounds a lot like what you can do with tower.

---

<div class="post-metadata">

**Author:** ![Stavros\_Korokithakis](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Stavros\_Korokithakis](https://forum.ansible.com/u/Stavros_Korokithakis)\
**Post date:** [January 18, 2015, 7:29pm UTC](https://forum.ansible.com/t/feature-ansible-pull-server-daemon/17305/3 "2015-01-18T19:29:19Z")

</div>

Maybe, but I already have ansible-pull installed, running it with an extra flag is much less work than installing tower.

---

<div class="post-metadata">

**Author:** ![Stavros\_Korokithakis](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Stavros\_Korokithakis](https://forum.ansible.com/u/Stavros_Korokithakis)\
**Post date:** [January 19, 2015, 12:36am UTC](https://forum.ansible.com/t/feature-ansible-pull-server-daemon/17305/4 "2015-01-19T00:36:17Z")

</div>

I’ve added the functionality here:

[https://github.com/ansible/ansible/pull/10041](https://github.com/ansible/ansible/pull/10041)
