# Inventory  foreman.py doesn´t work in AWX OCP

**URL:** <https://forum.ansible.com/t/inventory-foreman-py-doesn-t-work-in-awx-ocp/32693>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [April 15, 2020, 6:34pm UTC](https://forum.ansible.com/t/inventory-foreman-py-doesn-t-work-in-awx-ocp/32693 "2020-04-15T18:34:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alberto\_Jimenez\_Loza](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Alberto\_Jimenez\_Loza](https://forum.ansible.com/u/Alberto_Jimenez_Loza)\
**Post date:** [April 15, 2020, 6:34pm UTC](https://forum.ansible.com/t/inventory-foreman-py-doesn-t-work-in-awx-ocp/32693/1 "2020-04-15T18:34:47Z")

</div>

I have always used the dynamic inventory foreman.py in AWX connecting with satellite, but I have done an installation AWX 9.2 over openshift and it doesn’t work.

In AWX DOCKER it was necessary to edit the /etc/ansible/foreman.ini file with the access variables in the docker awx-task.

In AWX OCP I try to create the /etc/ansible/foreman.ini file in the container awx-web and awx-celery and I don’t have root permissions.

]# oc rsh -c awx-web awx-0  
sh-4.4$ id  
uid=1000(awx) gid=0(root) groups=0(root)

…  
…

“/etc/ansible/foreman.ini”  
“/etc/ansible/foreman.ini” E212: Can’t open file for writing  
E492: Not an editor command: Q!  
sh-4.4$

Has anyone used foreman.py inventory on AWX with openshift?
