Execution
Date
04 Sep 2024 13:12:24 +0100
Duration
00:00:00.75
Controller
ssh-gw-4.layershift.com
User
root
Versions
Ansible
2.16.4
ara
1.7.1 / 1.7.1
Python
3.10.10
Summary
1
Hosts
1
Tasks
1
Results
1
Plays
1
Files
0
Records
Task result details
-
StatusFAILED
-
Duration00:00:00.40
-
PlayGather and save system facts
-
TaskUpload gather_facts.sh script to the remote host
-
Date04 Sep 2024 13:12:25 +0100
-
Module / Actionansible.builtin.copy (/home/ssh-gateway/ansible/kuly/gather_facts_test1.yaml:6)
| Field | Value |
|---|---|
| changed |
False |
| exception |
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/ansible/plugins/action/copy.py", line 466, in run
source = self._find_needle('files', source)
File "/usr/local/lib/python3.10/site-packages/ansible/plugins/action/__init__.py", line 1429, in _find_needle
return self._loader.path_dwim_relative_stack(path_stack, dirname, needle)
File "/usr/local/lib/python3.10/site-packages/ansible/parsing/dataloader.py", line 341, in path_dwim_relative_stack
raise AnsibleFileNotFound(file_name=source, paths=[to_native(p) for p in search])
ansible.errors.AnsibleFileNotFound: Could not find or access 'files/gather_facts.sh'
Searched in:
/home/ssh-gateway/ansible/kuly/files/files/gather_facts.sh
/home/ssh-gateway/ansible/kuly/files/gather_facts.sh
/home/ssh-gateway/ansible/kuly/files/files/gather_facts.sh
/home/ssh-gateway/ansible/kuly/files/gather_facts.sh on the Ansible Controller.
If you are using a module and expect the file to exist on the remote, see the remote_src option
|
| invocation |
{ "dest": "/tmp/gather_facts.sh", "mode": "0755", "module_args": { "dest": "/tmp/gather_facts.sh", "mode": "0755", "src": "files/gather_facts.sh" }, "src": "files/gather_facts.sh" } |
| msg |
Could not find or access 'files/gather_facts.sh' Searched in: /home/ssh-gateway/ansible/kuly/files/files/gather_facts.sh /home/ssh-gateway/ansible/kuly/files/gather_facts.sh /home/ssh-gateway/ansible/kuly/files/files/gather_facts.sh /home/ssh-gateway/ansible/kuly/files/gather_facts.sh on the Ansible Controller. If you are using a module and expect the file to exist on the remote, see the remote_src option |