# Adding OneView Collection in AWX

**URL:** <https://forum.ansible.com/t/adding-oneview-collection-in-awx/36208>\
**Category:** AWX Project\
**Tags:** vmware, awx\
**Created:** [January 17, 2022, 3:58pm UTC](https://forum.ansible.com/t/adding-oneview-collection-in-awx/36208 "2022-01-17T15:58:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mulae001](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mulae001](https://forum.ansible.com/u/mulae001)\
**Post date:** [January 17, 2022, 3:58pm UTC](https://forum.ansible.com/t/adding-oneview-collection-in-awx/36208/1 "2022-01-17T15:58:00Z")

</div>

Hi there,

I’ve recently deployed AWX 19.5 using k3s/awx operator (0.15). I’ve followed a quite basic documentation found online which helped in deploying the cluster and a functional AWX without major issues. I’ve managed to also execute some playbooks using the vmware collections which is nice and confirms that its working.

Now im looking into adding the HPE libraries in AWX however it seems like i’ve hit a wall and cannot figure it out. HPE documentation ([https://developer.hpe.com/blog/accessing-ilo-redfish-apis-and-hpe-oneview-apis-on-ansible-awx/](https://developer.hpe.com/blog/accessing-ilo-redfish-apis-and-hpe-oneview-apis-on-ansible-awx/)) mentions that one needs to install gcc and also other stuff on the containers themselves. Apart from that it doesnt feel right to directly mess with the containers , didnt manage to connect to container awx-task using root or admin privilege’s.

Super user was created using the below example :  
kubectl -n awx exec pod/awx-858d78f68c-k67d7 --container awx-task -it awx-manage createsuperuser

I’ve created a test user named mula :

when connecting to the container itself still dont have permissions and connected as awx.

kubectl exec -n awx pod/awx-858d78f68c-k67d7 --container awx-task -it mula – /bin/bash  
bash-4.4$ id  
uid=1000(awx) gid=0(root) groups=0(root),1000

\*\* shows that user was created \*\*

[root@XXXXX kubectl-plugins]# kubectl exec -n awx pod/awx-858d78f68c-k67d7 --container awx-task -it awx-manage createsuperuser  
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] – [COMMAND] instead.  
Username: mula  
Error: That username is already taken.

Had a quick read in ansible-builder but im unsure whether this will solve the below problem.

Thank you!  
mulae

---

<div class="post-metadata">

**Author:** ![Seth\_Foster](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Seth\_Foster](https://forum.ansible.com/u/Seth_Foster)\
**Post date:** [January 19, 2022, 8:44pm UTC](https://forum.ansible.com/t/adding-oneview-collection-in-awx/36208/2 "2022-01-19T20:44:22Z")

</div>

Hi!

That blog appears to be have written based on an older version of AWX.

ansible-builder is the recommended way to put dependencies like gcc into your container, so please try that route and let us know how it goes.

Seth

---

<div class="post-metadata">

**Author:** ![mulae001](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mulae001](https://forum.ansible.com/u/mulae001)\
**Post date:** [January 21, 2022, 9:45am UTC](https://forum.ansible.com/t/adding-oneview-collection-in-awx/36208/3 "2022-01-21T09:45:07Z")

</div>

Thanks Seth, will try that out.
