Description of problem: When creating a host using the host resource from the satellite collection and using a content view during the host creation, the host created is not using the kickstart repository from the content view, it is using the repository available on the 'Default Organization View'. Version-Release number of selected component (if applicable): Satellite 6.8.2 How reproducible: Create a host on the Satellite using a kickstart repo from a content view. Steps to Reproduce: 1. 2. 3. Actual results: The repository used is from the Default Organization View, instead of the content view set on the playbook. Expected results: The repository used during the deployment would be the kickstart repository from the content view. Additional info: A complete troubleshoot will be provided.
There is a patch at https://github.com/theforeman/foreman-ansible-modules/pull/1132 which should fix the issue, I am just not yet totally happy with the patch itself :)
the patch has been merged upstream
Verified on Satellite 6.9 snap 16 using playbook from comment 1, kickstart_repository_id is correctly assigned and host is successfully created
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Satellite 6.9 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:1313