I have the below file module that helps copy files or create directory on
the target.
- file:
path: "{{ vars[inventory_hostname] }}/{{ Relative_Path }}/backup"
state: directory
recurse: yes
mode: "u=rwx,g=rw,o=r"
Unfortunately this has python dependency on the target as seen in the error
below:
TASK [file]
> ********************************************************************
> [WARNING]: No python interpreters found for host 10.9.2.192 (tried
> ['/usr/bin/python', 'python3.7', 'python3.6', 'python3.5', 'python2.7',
> 'python2.6', '/usr/libexec/platform-python', '/usr/bin/python3', 'python'])
> fatal: [10.9.2.192]: FAILED! => {"ansible_facts":
> {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false,
> "module_stderr": "Shared connection to 10.9.2.192 closed.\r\n",
> "module_stdout": "/bin/sh: /usr/bin/python: not found.\r\n", "msg": "MODULE
> FAILURE\nSee stdout/stderr for the exact error", "rc": 127}
I do not have python on the target servers.
Ideally i would think that a simple ssh or other tools are capable of doing
this without the need for python.
Is there a way to get ansible do this task without the need of python ?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/a07103fb-5cfc-4562-9e45-2989eaac1241%40googlegroups.com.