No host collections group from Satellite 6 Ansible Collection

Solution In Progress - Updated -

Environment

  • Red Hat Ansible Engine 2.9
  • Red Hat Satellite 6

Issue

  • The redhat.satellite.foreman Ansible Collection plugin does not create a group for host collections

Resolution

  • Add the parameter use_reports_api: true to the foreman.yml file like the example below:

    # cat foreman.yml 
    plugin: redhat.satellite.foreman
    validate_certs: False
    url: https://satellite.example.com
    user: admin
    password: redhat
    cache: no
    want_hostcollections: true
    use_reports_api: true
    

Root Cause

  • The need for this value with the option want_hostcollections: true is being evaluated here:
    https://github.com/theforeman/foreman-ansible-modules/issues/1270

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments