Ansible-pull and cloud-init and HOME variable

17 views
Skip to first unread message

Pshem Kowalczyk

unread,
Oct 16, 2017, 6:37:32 PM10/16/17
to Ansible Project
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.


kind regards
Pshem

Reply all
Reply to author
Forward
0 new messages