Start a Conversation

Solved!

Go to Solution

1 Rookie

 • 

2 Posts

1720

September 8th, 2021 08:00

Ansible 1.2 Module for Unity

i have an issue when i am trying to install the Collection of the Unity 1.2 Modules, it doesn't work at all, 

ansible 2.9.25
config file = /home/ansible/ansible.cfg
configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.6/site-packages/ansible
executable location = /usr/bin/ansible
python version = 3.6.8 (default, Mar 18 2021, 08:58:41) [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)]

 

Error:

ansible-doc dellemc.unity.dellemc_unity_gatherfacts
[WARNING]: module dellemc.unity.dellemc_unity_gatherfacts not found in: /home/ansible/.ansible/plugins/modules:/usr/share/ansible/plugins/modules:/usr/lib/python3.6/site-packages/ansible/modules

 

Tried to add new Environmental Variable with no luck is there any set of steps to be able to run this module am using below Yaml with no luck as well.


- name: Gatherfacts Module Operations on Unity
hosts: localhost
connection: local
vars:
unispherehost: '10.xx.xx.xx'
port: '443'
verifycert: False
username: 'admin'
password: 'Password123!'

tasks:
- name: Get detailed list of Unity entities
dellemc_unity_gatherfacts:
unispherehost: "{ {unispherehost}}"
username: "{ {username}}"
password: "{ {password}}"
verifycert: "{ {verifycert}}"
gather_subset:
- storage_pool
collections:
- dellemc.unity

 

1 Rookie

 • 

2 Posts

September 14th, 2021 09:00

Hi Rajendra,

I've fixed the issue already since this post date, and all above steps worked fine with no issue at all, the problem was with the user itself not the steps.

 

Thanks,

Salaha

6 Posts

September 14th, 2021 09:00

Hi @salaha1 ,

I tried replicating the same. But could not.

Can you please provide the error that you are facing when running the playbook ?

Please try the following steps once again before executing the playbook:

1. Install the collections:

        sample: ansible-galaxy collection install dellemc-unity-1.2.0.tar.gz -p /home/ansible/.ansible/collections/

2.  Set the environment variable

     Sample: export ANSIBLE_COLLECTIONS_PATHS=/home/ansible/.ansible/collections/

Once you follow the above steps, then try running the ansible-playbook or ansible-doc. They should work fine.

Please try the above steps once again and let us know if you are seeing any issues.

Please find my executed screenshots for reference:

Indukr_0-1631635365117.png

Indukr_2-1631635545885.png

 

Thanks

Rajendra

No Events found!

Top