Ansible-pull and cloud-init and HOME variable

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)

kind regards
Pshem