# deploying ansible with ansible

**URL:** <https://forum.ansible.com/t/deploying-ansible-with-ansible/20532>\
**Category:** Ansible Project\
**Created:** [February 11, 2016, 9:33am UTC](https://forum.ansible.com/t/deploying-ansible-with-ansible/20532 "2016-02-11T09:33:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frederic\_Van\_Espen](https://avatars.discourse-cdn.com/v4/letter/f/65b543/32.png) [@Frederic\_Van\_Espen](https://forum.ansible.com/u/Frederic_Van_Espen)\
**Post date:** [February 11, 2016, 9:33am UTC](https://forum.ansible.com/t/deploying-ansible-with-ansible/20532/1 "2016-02-11T09:33:25Z")

</div>

Hi,

We have an existing architecture where one host manages a number of hosts. Any of these hosts could be managing a number of other hosts. So we have a tree like architecture.

MASTER HOST

> 

/   
/--------- ------------------------------  
/ \   
HOST A HOST B HOST C

> 

/   
/----- ----  
/   
HOST D HOST E

Hosts on one level can only directly access hosts on the level below that are managed by them. So the master host can access hosts A, B and C only. Host A can only access hosts D and E.

We are thinking now of using ansible to manage the tree of hosts but we’d like to keep the existing architecture where the master host can manage host A, B and C through ansible. Host A should in turn manage hosts D and E through ansible.

Can this be done? Can I deploy ansible with ansible? Is anyone elso doing something similar? I’m thinking of starting to use this for something simple like deploying ssh public keys in authorized\_keys files.

Thanks for any feedback.

Frederic

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 11, 2016, 3:23pm UTC](https://forum.ansible.com/t/deploying-ansible-with-ansible/20532/2 "2016-02-11T15:23:35Z")

</div>

You can also define hosts D & E with connection settings that use host A as an ssh proxycommand.

---

<div class="post-metadata">

**Author:** ![Frederic\_Van\_Espen](https://avatars.discourse-cdn.com/v4/letter/f/65b543/32.png) [@Frederic\_Van\_Espen](https://forum.ansible.com/u/Frederic_Van_Espen)\
**Post date:** [February 15, 2016, 7:53am UTC](https://forum.ansible.com/t/deploying-ansible-with-ansible/20532/3 "2016-02-15T07:53:36Z")

</div>

Hi,
