I am new to Ansible and cannot seem to get it to work on Ubunto. I am trying a simple command: ansible all -m ping
I get back:
Cannot write to path /home/lee/.ansible/cp
Traceback (most recent call last):
File “/usr/lib/pymodules/python2.7/ansible/runner/init.py”, line 70, in _executor_hook
return_data = multiprocessing_runner._executor(host, new_stdin)
File “/usr/lib/pymodules/python2.7/ansible/runner/init.py”, line 364, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File “/usr/lib/pymodules/python2.7/ansible/runner/init.py”, line 443, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File “/usr/lib/pymodules/python2.7/ansible/runner/init.py”, line 579, in _executor_internal_inner
conn = self.connector.connect(actual_host, actual_port, actual_user, actual_pass, actual_transport, actual_private_key_file)
File “/usr/lib/pymodules/python2.7/ansible/runner/connection.py”, line 36, in connect
conn = utils.plugins.connection_loader.get(transport, self.runner, host, port, user=user, password=password, private_key_file=private_key_file)
File “/usr/lib/pymodules/python2.7/ansible/utils/plugins.py”, line 170, in get
return getattr(self._module_cache[path], self.class_name)(*args, **kwargs)
File “/usr/lib/pymodules/python2.7/ansible/runner/connection_plugins/ssh.py”, line 44, in init
self.cp_dir = utils.prepare_writeable_dir(‘$HOME/.ansible/cp’,mode=0700)
File “/usr/lib/pymodules/python2.7/ansible/utils/init.py”, line 205, in prepare_writeable_dir
exit(“Cannot write to path %s” % tree)
File “/usr/lib/pymodules/python2.7/ansible/utils/init.py”, line 122, in exit
sys.exit(rc)
SystemExit: 1
Cannot write to path /home/lee/.ansible/cp
Traceback (most recent call last):
File “/usr/lib/pymodules/python2.7/ansible/runner/init.py”, line 70, in _executor_hook
return_data = multiprocessing_runner._executor(host, new_stdin)
File “/usr/lib/pymodules/python2.7/ansible/runner/init.py”, line 364, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File “/usr/lib/pymodules/python2.7/ansible/runner/init.py”, line 443, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File “/usr/lib/pymodules/python2.7/ansible/runner/init.py”, line 579, in _executor_internal_inner
conn = self.connector.connect(actual_host, actual_port, actual_user, actual_pass, actual_transport, actual_private_key_file)
File “/usr/lib/pymodules/python2.7/ansible/runner/connection.py”, line 36, in connect
conn = utils.plugins.connection_loader.get(transport, self.runner, host, port, user=user, password=password, private_key_file=private_key_file)
File “/usr/lib/pymodules/python2.7/ansible/utils/plugins.py”, line 170, in get
return getattr(self._module_cache[path], self.class_name)(*args, **kwargs)
File “/usr/lib/pymodules/python2.7/ansible/runner/connection_plugins/ssh.py”, line 44, in init
self.cp_dir = utils.prepare_writeable_dir(‘$HOME/.ansible/cp’,mode=0700)
File “/usr/lib/pymodules/python2.7/ansible/utils/init.py”, line 205, in prepare_writeable_dir
exit(“Cannot write to path %s” % tree)
File “/usr/lib/pymodules/python2.7/ansible/utils/init.py”, line 122, in exit
sys.exit(rc)
SystemExit: 1
Any help appreciated
Lee