# Need to enter chroot on remote host

**URL:** <https://forum.ansible.com/t/need-to-enter-chroot-on-remote-host/34335>\
**Category:** Ansible Project\
**Created:** [December 15, 2020, 6:57am UTC](https://forum.ansible.com/t/need-to-enter-chroot-on-remote-host/34335 "2020-12-15T06:57:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathias\_Jung](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@Mathias\_Jung](https://forum.ansible.com/u/Mathias_Jung)\
**Post date:** [December 15, 2020, 6:57am UTC](https://forum.ansible.com/t/need-to-enter-chroot-on-remote-host/34335/1 "2020-12-15T06:57:21Z")

</div>

Hello,

some servers i like to manage have a chroot. There I have to run:  
chroot /home/system/chroot  
to switch in. There i have to install packages with APT, store configurations, etc.

Is there a chance to do that with ansible?

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [December 15, 2020, 9:02am UTC](https://forum.ansible.com/t/need-to-enter-chroot-on-remote-host/34335/2 "2020-12-15T09:02:39Z")

</div>

[https://docs.ansible.com/ansible/latest/collections/community/general/chroot\_connection.html](https://docs.ansible.com/ansible/latest/collections/community/general/chroot_connection.html)

---

<div class="post-metadata">

**Author:** ![Mathias\_Jung](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@Mathias\_Jung](https://forum.ansible.com/u/Mathias_Jung)\
**Post date:** [December 15, 2020, 11:33am UTC](https://forum.ansible.com/t/need-to-enter-chroot-on-remote-host/34335/3 "2020-12-15T11:33:22Z")

</div>

Hello Dick,

thank you for the link!  
I think i’m too much beginner - i do not know how to use it ☹  
Do you have an example for the plugin?

---

<div class="post-metadata">

**Author:** ![Mathias\_Jung](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@Mathias\_Jung](https://forum.ansible.com/u/Mathias_Jung)\
**Post date:** [December 17, 2020, 8:35am UTC](https://forum.ansible.com/t/need-to-enter-chroot-on-remote-host/34335/4 "2020-12-17T08:35:46Z")

</div>

anyone out there who can help me out?
