Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: could not locate file in lookup #2

Open
OpenShiftPOC1 opened this issue May 23, 2019 · 1 comment
Open

Error: could not locate file in lookup #2

OpenShiftPOC1 opened this issue May 23, 2019 · 1 comment

Comments

@OpenShiftPOC1
Copy link

OpenShiftPOC1 commented May 23, 2019

Hi,

While running the playbook main.yml, I am getting an error, while executing below task from file udp_to_server.yaml

TASK [make sure file Exist] ************************************************************************************************************************************************************************************
[WARNING]: Unable to find '/tmp/ansible_network_health_check_to/udp_172.41.25.227_8053_PID' in expected paths (use -vvvvv to see paths)

fatal: [localhost]: FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'file'. Error was a <class 'ansible.errors.AnsibleError'>, original message: could not locate file in lookup: /tmp/ansible_network_health_check_to/udp_172.41.25.227_8053_PID"}

@RaphaelNeumann
Copy link
Contributor

This occur because the ansible try to lookup the file on machine when you execute the ansible,

I has send a Pull Resquest #4 for fix this. Changing the way of get PID to use register instead of lookup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants