-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Dynamic inventory error in Ansible AWX - Nmap Plugin #8212
Comments
Files identified in the description: If these files are incorrect, please update the |
Hmm, this looks like a bug in AWX, since that extra dictionary in the JSON output of I recently also noticed the strange dicts in the JSON output, but was told that was intentional (ansible/ansible#82999), with a reference to that request by AWX. CC @AlanCoding (in case you're the wrong person to ping, you probably have a better idea who should be pinged for this ;) ) |
Had the same issue with the Proxmox inventory, rolling back to community.general |
Thanks @felixfontein for providing the extra links for clarity. Thanks @Nachichuri for that; I found your response on reddit right after I posted this issue :) |
One thought I had yesterday evening: add a helper function to be used instead of That doesn't fix the bug in AWX, but reduces the chance of triggering it. |
I believe this would be a good band-aid until the AWX bug is fixed. |
Facing the same issue with Proxmox inventory. |
I implemented a workaround in #8225 that should avoid most problems until AWX fixes this bug. It would be great if you could test the changes in the PR. |
Is it all merged with main? |
The PR has not yet been merged. |
The issue seems to persist even with the changes in the PR. Is anyone else getting a different result? |
I'm going to merge the PR now since the behavior for @MauriceMorrey also persisted with older community.general versions that do not mark anything as unsafe. It's probably either caching something, or not using the version from the EE. Let's see if the situation gets better at least for some folks with the PR merged and released. |
Things working as expected with the PR merged. Much appreciated. |
Great to hear! |
@MauriceMorrey can you upload the docker image with nmap and community.general please |
@evangraudins What are you trying to accomplish? If your aim is to create a custom execution environment, here's a helpful guide. |
Summary
I built a custom AWX Execution Environment with ansible-builder that installs Nmap CLI to be able to use the community.general.nmap plugin.
I have a dynamic inventory I was updating with my nmap plugin yaml file - see below. It was working seamlessly until about 2 weeks ago.
The timeline for the error we are getting is in line with when this patch was made.
There seems to be a similar issue that has been posted on this reddit thread.
Issue Type
Bug Report
Component Name
Ansible Version
Community.general Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
No response
Steps to Reproduce
Expected Results
I expect the log output to show the number of loaded groups and hosts at the end of the file, but it does not get that far. Log output should look like below:
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: