-
Notifications
You must be signed in to change notification settings - Fork 741
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: No file was found when using first_found on Ubuntu 20.04 #676
Comments
I have no idea what the problem is.. Can you check if the same happens on the |
I can report that it does not happen with the Doing some more debugging on my end, this is triggered when I try to limit my play to specific tags that do not include the
I use the following pattern in my roles so I can more easily use tags to limit my plays. This is useful when I'm iterating on developing a specific role:
So when I limit my play to just tasks tagged with,
|
I can get a successful run by adding Since I have a successful workaround I'll close this ticket, also since it seems to be something on my end with my setup. If I figure out what the root cause is, and there is a fix that might save other user's time, I'll open a new ticket with better information and possibly a PR. Apologies for the inconvenience or if this ticket lost some of your time. |
Glad you worked it out and if you find something to improve, we'd be glad to hear it! |
I had the same issue. Some machines fails during |
This error is caused by Ansible not implicitly gathering facts, when tags are used (ansible/ansible#57529 (comment)) in combination with us having @rndmh3ro we could add an explicit setup step in our roles, if the facts have not been gathered implicitly. What do you think? |
Description
I recently upgraded my Ansible from 3.x to 7.5 and ran my playbook against one of my web servers and got the following error:
I looked in my
requirements.yml
file and noticed that I was also running an old version ofdevsec.hardening
, so I upgraded to the latest version, 8.8.However, after upgrading to 8.8 I got the same error.
When I downgraded the collection,
devsec.hardening
, to 8.6 it started working again.Not sure what happened between 8.6 and 8.8 but there might be a regression.
Reproduction steps
Current Behavior
Expected Behavior
The role applies to the server without error.
OS / Environment
Provide all relevant information below, e.g. target OS versions, network device firmware, etc.
Target OS: Ubuntu 20.04
Ansible Host: macOS 13.3.1 (Ventura)
Ansible Version
Collection Version
Additional information
I added some
debug
tasks to my playbook to see what the variables were set to for the var file loading logic inhardening.yml
.Here is the playbook I used to test:
And here is the relevant output:
The text was updated successfully, but these errors were encountered: