cjnovak98 / ocp4-disconnected-collection

0 stars 0 forks source link

stage/import ansible-galaxy broken. download method changed, altering the way its packaged #43

Open mriensch opened 4 hours ago

mriensch commented 4 hours ago

using community.general.ansible_galaxy_install module to pull the collection, as is, currently installs the collections in "{{ common_openshift_download_dir }}/collections" vs just packaging it up to be installed on a disconnected machine.

the other half of the is held in ocp4-disconnected-configplaybooks/role/import-collection

the current method results in:

drwxr-xr-x. 6 user user 64 Oct  9 13:38 ansible
drwxr-xr-x. 2 user user 24 Oct  9 13:38 ansible.netcommon-7.1.0.info
drwxr-xr-x. 2 user user 24 Oct  9 13:38 ansible.posix-1.5.4.info
drwxr-xr-x. 2 user user 24 Oct  9 13:38 ansible.utils-5.1.2.info
drwxr-xr-x. 2 user user 24 Oct  9 13:38 ansible.windows-2.5.0.info
drwxr-xr-x. 3 user user 18 Oct  9 13:38 cisco
drwxr-xr-x. 2 user user 24 Oct  9 13:38 cisco.nxos-8.1.0.info
drwxr-xr-x. 4 user user 35 Oct  9 13:38 community
drwxr-xr-x. 2 user user 24 Oct  9 13:38 community.crypto-2.22.0.info
drwxr-xr-x. 2 user user 24 Oct  9 13:38 community.general-9.4.0.info
drwxr-xr-x. 3 user user 20 Oct  9 13:38 containers
drwxr-xr-x. 2 user user 24 Oct  9 13:38 containers.podman-1.16.1.info
drwxr-xr-x. 3 user user 24 Oct  9 13:38 dellemc
drwxr-xr-x. 2 user user 24 Oct  9 13:38 dellemc.openmanage-9.5.0.info
drwxr-xr-x. 3 user user 26 Oct  9 13:38 ocp4

vs the old method:

-rw-r--r--.  1 user user  260799 Sep 30 14:07 ansible-netcommon-7.1.0.tar.gz
-rw-r--r--.  1 user user  181688 Sep 30 14:07 ansible-posix-1.5.4.tar.gz
-rw-r--r--.  1 user user  291736 Sep 30 14:07 ansible-utils-5.1.2.tar.gz
-rw-r--r--.  1 user user  514639 Sep 30 14:07 ansible-windows-2.5.0.tar.gz
-rw-r--r--.  1 user user  931995 Sep 30 14:07 cisco-nxos-8.1.0.tar.gz
-rw-r--r--.  1 user user  651455 Sep 30 14:07 community-crypto-2.22.0.tar.gz
-rw-r--r--.  1 user user 2666052 Sep 30 14:07 community-general-9.4.0.tar.gz
-rw-r--r--.  1 user user  574439 Sep 30 14:07 containers-podman-1.16.1.tar.gz
-rw-r--r--.  1 user user 1069913 Sep 30 14:07 dellemc-openmanage-9.5.0.tar.gz
-rw-r--r--.  1 user user   21986 Sep 30 14:07 ocp4-disconnected-0.1.1.tar.gz
-rw-r--r--.  1 user user     560 Sep 30 14:07 requirements.yml

either part of the equation need to match the other.

just as a note, not sure how you can use a module (that isn't installed) to install the module that's needed to install the module

mriensch commented 3 hours ago

need to revert common play to download them to the previous state(using shell to use ansible-galaxy) , testing copying the install dir, doesn't register the collections correctly in ansible-galaxy