# launch ad hoc commands with preselected credentials

**URL:** <https://forum.ansible.com/t/launch-ad-hoc-commands-with-preselected-credentials/27748>\
**Category:** AWX Project\
**Created:** [June 8, 2018, 12:41pm UTC](https://forum.ansible.com/t/launch-ad-hoc-commands-with-preselected-credentials/27748 "2018-06-08T12:41:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_Behrens](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@Lars\_Behrens](https://forum.ansible.com/u/Lars_Behrens)\
**Post date:** [June 8, 2018, 12:41pm UTC](https://forum.ansible.com/t/launch-ad-hoc-commands-with-preselected-credentials/27748/1 "2018-06-08T12:41:07Z")

</div>

Hello,

Via Inventory-\> Hosts it is possible to run ad hoc commands on specific machines. Since we will have several different credentials in our setup, it would be nice to have a preselected credential for administrative purpose.

Question: Is it possible to define a default credential, that gets preselected when runnig an ansible command manually?

Yours Sincerely,  
Lars
