You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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):
if '.' not in module.foreman_params['name']:
module.fail_json(msg="The hostname must be FQDN")
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: