-
Notifications
You must be signed in to change notification settings - Fork 164
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
host module failing to operate due to FQDN issue #1563
Comments
I was able to run the playbook successfully by modifying my ~/.ansible/collections/ansible_collections/theforeman/foreman/plugins/modules/host.py file to comment out the following lines (lines 461-462 in my version): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SUMMARY
When using the theforeman.foreman.host module, it will not execute if the name parameter is not a FQDN. However, not all hosts are always listed that way in the database, so when it attempts to identify the content host via lookup it fails to find it and thus does not execute the requested function
ISSUE TYPE
ANSIBLE VERSION
COLLECTION VERSION
KATELLO/FOREMAN VERSION
STEPS TO REPRODUCE
EXPECTED RESULTS
End result of the playbook should be the content-host "test-server" being removed from foreman/katello
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: