# run ansible for single server

**URL:** <https://forum.ansible.com/t/run-ansible-for-single-server/28895>\
**Category:** Ansible Developer\
**Created:** [October 30, 2018, 5:04am UTC](https://forum.ansible.com/t/run-ansible-for-single-server/28895 "2018-10-30T05:04:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kavya\_bhandari](https://avatars.discourse-cdn.com/v4/letter/k/ccd318/32.png) [@Kavya\_bhandari](https://forum.ansible.com/u/Kavya_bhandari)\
**Post date:** [October 30, 2018, 5:04am UTC](https://forum.ansible.com/t/run-ansible-for-single-server/28895/1 "2018-10-30T05:04:13Z")

</div>

how to run the play-boo for one server through command ansible-playbook

---

<div class="post-metadata">

**Author:** ![Alok\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Alok\_Gupta](https://forum.ansible.com/u/Alok_Gupta)\
**Post date:** [October 30, 2018, 2:52pm UTC](https://forum.ansible.com/t/run-ansible-for-single-server/28895/2 "2018-10-30T14:52:56Z")

</div>

You can explicitly mention the hostname/IP\_Address to execute the ansible playbook like this, along with the extra variables that maybe used inside your role

ansible-playbook -i ‘\<IP\_ADDRESS\>’ ansible/configure-gocd-postgres.yml --extra-vars ‘{  
“variable\_1”:“”,  
“variable\_2”:“”,  
“variable\_3”:“”,  
“variable\_4”:“”,  
}’
