redhat-cop / ee_utilities

This ansible collection includes a number of roles and tools which can be useful for managing Ansible Execution Environments.
https://galaxy.ansible.com/infra/ee_utilities
GNU General Public License v3.0
57 stars 34 forks source link

Known Issue: containers.podman is required for this collection, but not a dependency #135

Open myllynen opened 1 year ago

myllynen commented 1 year ago

When doing "ansible-galaxy collection install infra.ee_utilities" the required containers.podman collection is not installed as a dependency because it is not listed as such in galaxy.yml.

sean-m-sullivan commented 12 months ago

This is a known issue atm. If we include it in galaxy.yml, it would install normally. However if someone tries to pull the collection from Console.redhat.com, Because containers.podman is not in the validated repository, it fails, Keeping this open to document it, but it requires fixes on automation hub/console.redhat backend.

extravio commented 6 months ago

In Ansible Hub, we can synchronize collections that have dependencies in different remotes by specifying a source in the requirements.yml file. example:

collections:
  - name: network.base
    source: https://console.redhat.com/api/automation-hub/content/validated/

  - name: network.interfaces
    source: https://console.redhat.com/api/automation-hub/content/validated/

  - name: ansible.utils
    source: https://console.redhat.com/api/automation-hub/content/published/

  - name: ansible.netcommon
    source: https://console.redhat.com/api/automation-hub/content/published/

see: How to sync Validated Ansible Collections from console.redhat.com to Private Automation Hub using a requirements.yml file?

However, specifying the following did not work for us:

collections:
  - name: containers.podman
    source: https://galaxy.ansible.com/api/
  - name: infra.ee_utilities
    source: https://console.redhat.com/api/automation-hub/content/validated/ 

Is there something you can change at your end that would prevent Automation Hub from trying to pull containers.podman from console.redhat and use the source specified in the requirements.yml file? @sean-m-sullivan