# ansible playbook executing the tasks on localhost(Master Node) instead of remote node

**URL:** <https://forum.ansible.com/t/ansible-playbook-executing-the-tasks-on-localhost-master-node-instead-of-remote-node/32133>\
**Category:** Ansible Project\
**Created:** [February 4, 2020, 11:17am UTC](https://forum.ansible.com/t/ansible-playbook-executing-the-tasks-on-localhost-master-node-instead-of-remote-node/32133 "2020-02-04T11:17:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anilkumar\_panditi](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@anilkumar\_panditi](https://forum.ansible.com/u/anilkumar_panditi)\
**Post date:** [February 4, 2020, 11:17am UTC](https://forum.ansible.com/t/ansible-playbook-executing-the-tasks-on-localhost-master-node-instead-of-remote-node/32133/1 "2020-02-04T11:17:51Z")

</div>

this is my dynamic inventory

# inventory of servers

#ungrouped servers  
hdi\_master1 ansible\_host=13.234.186.61 ansible\_user=centos --private-key=/home/centos/openshift.pem

#hdinsights groups  
[hdinsights\_all]  
hdi\_master1

My Playbook:

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [February 4, 2020, 11:43am UTC](https://forum.ansible.com/t/ansible-playbook-executing-the-tasks-on-localhost-master-node-instead-of-remote-node/32133/2 "2020-02-04T11:43:35Z")

</div>

It’s because you have transport=local in your ansible.cfg. Remove that and it will default to ssh.
