# Ubuntu overlayroot

**URL:** <https://forum.ansible.com/t/ubuntu-overlayroot/25789>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [October 20, 2017, 5:44am UTC](https://forum.ansible.com/t/ubuntu-overlayroot/25789 "2017-10-20T05:44:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_Thomas](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@Sam\_Thomas](https://forum.ansible.com/u/Sam_Thomas)\
**Post date:** [October 20, 2017, 5:44am UTC](https://forum.ansible.com/t/ubuntu-overlayroot/25789/1 "2017-10-20T05:44:24Z")

</div>

Hi everyone,

I am using Ubuntu’s overlayroot to protect the filesystem from power loss events on several remote systems.  
[https://packages.ubuntu.com/trusty/admin/overlayroot](https://packages.ubuntu.com/trusty/admin/overlayroot)

Usually I would use the command overlayroot-chroot to enter a chroot environment to install additional software permanently on the device.  
Has anybody found a method to do this with ansible?

I have tired both  
command: overlayroot-chroot  
and  
shell: overlayroot-chroot

Prior to an apt: with no luck.

Appreciate any guidance.

---

<div class="post-metadata">

**Author:** ![Sam\_Thomas](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@Sam\_Thomas](https://forum.ansible.com/u/Sam_Thomas)\
**Post date:** [October 20, 2017, 7:44am UTC](https://forum.ansible.com/t/ubuntu-overlayroot/25789/2 "2017-10-20T07:44:32Z")

</div>

I should mention that I can do  
command: overlayroot-chroot apt-get install {{ package }}

However I would like to use Ansible’s apt:
