Ansible and OpenSuse 11.4

Hi Everyone.

I’m currently trying to connect to an OpenSuse machine.
It’s an OpenSuse 11.4 server with the minimum requirements to use it with ansible.
The problem is that when I’m trying to gather some info with the ansible command, it returns this error:

mario@ThinkPad:~$ ansible 192.168.1.225 -m setup -i hosts -u gaz -k -v
SSH password:
192.168.1.225 | FAILED => failed to transfer file to /setup

I can connect to sftp and ssh with no problems.

The ansible version that I’m using is:

mario@ThinkPad:~$ ansible --version
ansible 1.3

It was downloaded directly fro the ubuntu repos.

Hope anyone can help me. Thanks!

Hi Mario,

Can you get the output of -vvv ? It sounds like its unable to get a particular host fact and then dying. This should show us which one.

I don’t think it’s related to a fact failure as it said it could not copy the setup module over.

Did you perhaps have ANSIBLE_REMOTE_TMP set to “/” ?

Otherwise, it’s for some reason not trying to put the file in your home directory. Any info about how your setup is customized would be interesting.

Shouldn’t be any SLES-specific problems here.

I've run into this a couple of times when the account on the remote machine
did not own its home directory. This was because of a config error at
server install time.

I've also seen a similar issue on servers where accounts are maintained in
LDAP, home directories are not automounted, and the local PAM configuration
files are missing the call to automatically create the user's home
directory on the first login. That produced an error similar to "No home
directory! Using HOME=/". I don't think Mario is having this particular
problem, though.

  -Greg

True, ^ a far more sensible answer :slight_smile:

Sorry guys, maybe it was a misconfiguration like Greg said.

I reinstalled openSuse and it worked.

Thanks everyone.