Closed sundarrd closed 1 week ago
Hi @sundarrd,
Sometime back I had written detailed blogs on the Ansible+Dell theme, which includes post on installing PowerStore modules on AWX. See if this helps.
Thank you for the response i checked the blog which uses old version of AWX now with recent AWX it is on kubernetes [root@awx ~]# kubectl -n awx exec -it awx-844c574f84-bc4ww -c awx-task -- /bin/bash bash-5.1$ ansible-galaxy bash: ansible-galaxy: command not found bash-5.1$ that procedure does not work any more .
we may have to use [root@awx ~]# kubectl -n awx exec -it awx-844c574f84-bc4ww -c awx-ee -- /bin/bash bash-4.4$ ansible-galaxy collection install dellemc.powerstore -c Starting galaxy collection install process Process install dependency map Starting collection install process Downloading https://galaxy.ansible.com/download/dellemc-powerstore-1.6.0.tar.gz to /home/runner/.ansible/tmp/ansible-local-3648wbuk4c_/tmprzm8bse6/dellemc-powerstore-1.6.0-ltamh_71 Installing 'dellemc.powerstore:1.6.0' to '/home/runner/.ansible/collections/ansible_collections/dellemc/powerstore' dellemc.powerstore:1.6.0 was installed successfully bash-4.4$ will test it more and update here
Thank you @sundarrd for the update.
i cannot get it to run from AWX i can execute the playbook froom the container itself
bash-4.4$ ansible-playbook capacity_volumes1.yml /usr/local/lib/python3.8/site-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated "class": algorithms.Blowfish, [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' [WARNING]: running playbook inside collection dellemc.powerstore
PLAY [Volumes which have capacity more than the threshold] **
TASK [Gathering Facts] ** ok: [localhost]
TASK [Get the details of the array] ***** ok: [localhost]
TASK [set_fact] ***** ok: [localhost]
TASK [Get the details of all the volumes in the array] ** ok: [localhost] => (item=weekly.Consistency Group.2022-07-27T00:07:01Z 044907410.LUN-005.2022-07-27T00:07:01Z 110043709) ok: [localhost] => (item=weekly.Consistency Group.2022-07-27T00:07:01Z 044907410.LUN-002.2022-07-27T00:07:01Z 109781058) ok: [localhost] => (item=weekly.Consistency Group.2022-07-26T00:07:01Z 146300283.LUN-003.2022-07-26T00:07:01Z 243213530) ok: [localhost] => (item=weekly.Consistency Group.2022-07-28T00:07:01Z 093396404.LUN-005.2022-07-28T00:07:01Z 155397344) ok: [localhost] => (item=weekly.Ans_test_1.2022-07-30T00:06:20Z 623938720) ok: [localhost] => (item=weekly.Consistency Group.2022-07-26T00:07:01Z 146300283.LUN-001.2022-07-26T00:07:01Z 243158102) ok: [localhost] => (item=weekly.Consistency Group.2022-07-28T00:07:01Z 093396404.LUN-010.2022-07-28T00:07:01Z 155138794) ok: [localhost] => (item=New_Datastore-008)
when i execute from AWX ansible-playbook [core 2.12.5.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /runner/requirements_collections:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.13 (default, Jun 24 2022, 15:27:57) [GCC 8.5.0 20210514 (Red Hat 8.5.0-13)] jinja version = 2.11.3 libyaml = True No config file found; using defaults host_list declined parsing /runner/inventory/hosts as it did not pass its verify_file() method Parsed /runner/inventory/hosts inventory source with script plugin ERROR! couldn't resolve module/action 'info'. This often indicates a misspelling, missing collection, or incorrect module path. The error appears to be in '/runner/project/collections/ansible_collections/dellemc/powerstore/docs/samples/capacity_volumes.yml': line 15, column 7, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: tasks:
May be i need to build a custom EE for this ,
Closing this due to inactivity.
How can the Team help you today?
Details: ?Hello team I managed to install the powerstore ansible modules with ansible galaxy is there a way to install these modules in awx ? i installed awx 0.20.5 on k3s but there seems to be no provision in AWX to install any third party modules in which case i have to write my own playbook and provide the repository to sync if you have any procedure please post a detailed instructions .