Changing $HOME

The user I’m trying to ssh in with has no home directory. In fact, the variable, $HOME, is wrong on the machine for this user’s shell. I try to set the variable to something that would be valid in the ANSIBLE_HOSTS file eg:

myhost ansible_connection=paramiko HOME=/tmp/home

but, it does not seem to matter. I’ve tried ssh and paramiko as the ansible_connection to no avail.

EXEC /bin/sh -c ‘mkdir -p $HOME/.ansible/tmp/ansible-1378832732.2-166278481249716 && chmod a+rx $HOME/.ansible/tmp/ansible-1378832732.2-166278481249716 && echo $HOME/.ansible/tmp/ansible-1378832732.2-166278481249716’

myhost | FAILED => could not create temporary directory: SSH exited with return code 1

I would actually like to ssh in as userA and then su to userB. But, I would be content for the moment, if I could just run the command in the Getting Started guide on this funky host:

$ ansible all -m ping --ask-pass

Only been at this for a few minutes so pardon me if this is obvious.

Thanks,
Skylar

in ansible.cfg you can set remote_tmp to something different (it defaults to $HOME/.ansible/tmp)

also you can use the ANSIBLE_REMOTE_TEMP env var

Thank you very much; makes perfect sense.