# how do you run ansible?

**URL:** <https://forum.ansible.com/t/how-do-you-run-ansible/11962>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [October 9, 2012, 1:00pm UTC](https://forum.ansible.com/t/how-do-you-run-ansible/11962 "2012-10-09T13:00:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [October 9, 2012, 1:00pm UTC](https://forum.ansible.com/t/how-do-you-run-ansible/11962/1 "2012-10-09T13:00:21Z")

</div>

I generally recommend using SSH agent with a encrypted key. Whether  
or not you use sudo is up to you.

You can specify both passwords via the API if you don't want to prompt  
for it, so I'm throwing that out there as an option. (You cannot,  
however, specify them on the command line)

Of potential interest to scripting use cases, In 0.9, the  
ansible-commander web service (which is evolving and not ready for  
use) will also allow users to launch playbooks via REST and will take  
care of adding keys to SSH-agent for you.

Should you not need any of the multi-node configuration use cases,  
ansible-pull can also run against git+cron and wouldn't require  
supplying any credentials.

It depends on your environment basically, and what you are comfortable  
with in terms of key security.

---

<div class="post-metadata">

**Author:** ![Aaron\_Bassett](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@Aaron\_Bassett](https://forum.ansible.com/u/Aaron_Bassett)\
**Post date:** [October 10, 2012, 3:23pm UTC](https://forum.ansible.com/t/how-do-you-run-ansible/11962/2 "2012-10-10T15:23:20Z")

</div>

Ok thanks for the info. I’m still feeling this out, so I’m not sure how the environment 's gonna look in the end.

That ansible-commander looks very interesting, I’ll be keeping my eye on that.
