# Overriding chroot path for ansible\_connection=chroot

**URL:** <https://forum.ansible.com/t/overriding-chroot-path-for-ansible-connection-chroot/18162>\
**Category:** Ansible Project\
**Created:** [May 5, 2015, 6:41pm UTC](https://forum.ansible.com/t/overriding-chroot-path-for-ansible-connection-chroot/18162 "2015-05-05T18:41:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman\_Gaufman](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@Roman\_Gaufman](https://forum.ansible.com/u/Roman_Gaufman)\
**Post date:** [May 5, 2015, 6:41pm UTC](https://forum.ansible.com/t/overriding-chroot-path-for-ansible-connection-chroot/18162/1 "2015-05-05T18:41:53Z")

</div>

I cannot find any documentation for the chroot connection and I have tried asking on #ansible and googling. When I need to override the ssh host, I can do:

```auto
ansible_ssh_host: '{{ ip | default("vpn.%s.%s" % (inventory_hostname, domain)) }}'

```

How would I do the same to override the chroot\_path? - I need to keep the inventory\_hostname.
