# playbook gets remote invoked best practice

**URL:** <https://forum.ansible.com/t/playbook-gets-remote-invoked-best-practice/24401>\
**Category:** Ansible Project\
**Created:** [May 4, 2017, 7:31pm UTC](https://forum.ansible.com/t/playbook-gets-remote-invoked-best-practice/24401 "2017-05-04T19:31:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Weiwen\_Chen](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@Weiwen\_Chen](https://forum.ansible.com/u/Weiwen_Chen)\
**Post date:** [May 4, 2017, 7:31pm UTC](https://forum.ansible.com/t/playbook-gets-remote-invoked-best-practice/24401/1 "2017-05-04T19:31:26Z")

</div>

Dear experts,

Here is my case with machine A and B. Both have sets of playbooks. The kickoff is initiated from playbook on machine A, and it has a task to call the playbook on machine B:

- hosts: B  
tasks:

- name: Call remote playbook  
shell: \>  
ansible-playbook -i inventory playbookOnB.yml

It works, however output from playbookOnB will be streamlined and not formatted.

Any better suggestion on this use case?

thanks & Regards  
-ww
