# Ansible-pull and cloud-init and HOME variable

**URL:** <https://forum.ansible.com/t/ansible-pull-and-cloud-init-and-home-variable/25758>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [October 16, 2017, 10:37pm UTC](https://forum.ansible.com/t/ansible-pull-and-cloud-init-and-home-variable/25758 "2017-10-16T22:37:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pshem\_Kowalczyk](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@Pshem\_Kowalczyk](https://forum.ansible.com/u/Pshem_Kowalczyk)\
**Post date:** [October 16, 2017, 10:37pm UTC](https://forum.ansible.com/t/ansible-pull-and-cloud-init-and-home-variable/25758/1 "2017-10-16T22:37:13Z")

</div>

Hi,

I thought I share some info on what took me a few hours of debugging to discover when it comes to using ansible to hydrate ubuntu-based instances using cloud-init.

It looks like cloud-init doesn’t set HOME variable which prevents a number of modules from working correctly. The modules that tripped me were copy and template, but I suspect there will be others too.

So if you run into issues with ansible (or ansible-pull) do make sure HOME is actually set.

(issue opened here: [https://github.com/ansible/ansible/issues/31617](https://github.com/ansible/ansible/issues/31617))

kind regards  
Pshem
