Why am I Getting a "File not found" Error when I Run a Job in Ansible Tower?
Environment
- Ansible Tower
Issue
- A file that exists in the filesystem is reported as 'not found' when a Tower job template runs.
Resolution
- In
Settings >> Configure Tower >> Jobs, either turn off process isolation, which will allow access to any directories and files available to theawxuser, or add the path to the directory containing the file to thePaths to Expose to Isolated Jobsfield on the same page.
Root Cause
- By default, Ansible Tower limits the Ansible core's filesystem access for running Tower jobs. When paths outside of the default filesystem subset are required for a particular project, those paths can be added by the method described, or the isolation provided by these services can be simply turned off.
Diagnostic Steps
- Job isolation issues should be suspected when a Tower job run produces a failure that indicates an existing file was not found.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments