# delegation from the command ansible

**URL:** <https://forum.ansible.com/t/delegation-from-the-command-ansible/30508>\
**Category:** Ansible Project\
**Created:** [June 6, 2019, 10:01pm UTC](https://forum.ansible.com/t/delegation-from-the-command-ansible/30508 "2019-06-06T22:01:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luca\_Cazzaniga](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Luca\_Cazzaniga](https://forum.ansible.com/u/Luca_Cazzaniga)\
**Post date:** [June 6, 2019, 10:01pm UTC](https://forum.ansible.com/t/delegation-from-the-command-ansible/30508/1 "2019-06-06T22:01:51Z")

</div>

hi I’m wondering if there is a method to delegate to another host from the command ansible without writing down a playbook

ansible server1 -m synchronize -a “src=~/gitapi dest=~” -e “ansible\_python\_interpreter=/usr/bin/python3”

is there an env variable to delegate the module synchronize execution to server2?

regards

Luca
