# AWX Operator + k3s and inventory import

**URL:** <https://forum.ansible.com/t/awx-operator-k3s-and-inventory-import/35712>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 7, 2021, 12:57pm UTC](https://forum.ansible.com/t/awx-operator-k3s-and-inventory-import/35712 "2021-09-07T12:57:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![amblikmeez](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@amblikmeez](https://forum.ansible.com/u/amblikmeez)\
**Post date:** [September 7, 2021, 12:57pm UTC](https://forum.ansible.com/t/awx-operator-k3s-and-inventory-import/35712/1 "2021-09-07T12:57:51Z")

</div>

Hello!  
I tried to install latest AWX Operator on my CentOS 7 vm using following guide: [https://github.com/kurokobo/awx-on-k3s](https://github.com/kurokobo/awx-on-k3s)  
Does anyone know, how am i able to import multiple hosts or my own inventory file into AWX ?

Br,  
Kimmo

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [September 7, 2021, 1:05pm UTC](https://forum.ansible.com/t/awx-operator-k3s-and-inventory-import/35712/2 "2021-09-07T13:05:52Z")

</div>

Use inventory sources

---

<div class="post-metadata">

**Author:** ![amblikmeez](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@amblikmeez](https://forum.ansible.com/u/amblikmeez)\
**Post date:** [September 8, 2021, 5:39am UTC](https://forum.ansible.com/t/awx-operator-k3s-and-inventory-import/35712/3 "2021-09-08T05:39:02Z")

</div>

I tried to use “sourced from a project” method, but im not able to see my inventory file.  
Could it be, that it does not work with a project, which is using manual source control? or is it overall bug ?

[weiye...@gmail.com](mailto:weiye...@gmail.com) kirjutas teisipäev, 7. september 2021 kl 16:05:59 UTC+3:

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [September 8, 2021, 5:41am UTC](https://forum.ansible.com/t/awx-operator-k3s-and-inventory-import/35712/4 "2021-09-08T05:41:08Z")

</div>

I use this method all the time now and it shows up. Have you updated the project, formatted correctly?

---

<div class="post-metadata">

**Author:** ![amblikmeez](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@amblikmeez](https://forum.ansible.com/u/amblikmeez)\
**Post date:** [September 8, 2021, 6:26am UTC](https://forum.ansible.com/t/awx-operator-k3s-and-inventory-import/35712/5 "2021-09-08T06:26:07Z")

</div>

Hmm, i think so. I did try again and now im getting an error message - Cannot use manual project for SCM-based inventory. Any suggestions ? Maybe im still doing something wrong ?

[weiye...@gmail.com](mailto:weiye...@gmail.com) kirjutas kolmapäev, 8. september 2021 kl 08:41:20 UTC+3:

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [September 8, 2021, 6:27am UTC](https://forum.ansible.com/t/awx-operator-k3s-and-inventory-import/35712/6 "2021-09-08T06:27:40Z")

</div>

Can you show the screen please? Error message text

---

<div class="post-metadata">

**Author:** ![amblikmeez](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@amblikmeez](https://forum.ansible.com/u/amblikmeez)\
**Post date:** [September 8, 2021, 6:52am UTC](https://forum.ansible.com/t/awx-operator-k3s-and-inventory-import/35712/7 "2021-09-08T06:52:21Z")

</div>

![Näyttökuva 2021-09-08 094848.jpg](https://us1.discourse-cdn.com/ansible/original/2X/e/e8ae31420e38bd61a5ad331dd04f82cce47c0f14.jpeg)

This “/ (project root)” was my only choice. So i did try to type manually inventory.ini file there and then i got that error. Should this inventory file come into the selection itself ?

[weiye...@gmail.com](mailto:weiye...@gmail.com) kirjutas kolmapäev, 8. september 2021 kl 09:27:50 UTC+3:

---

<div class="post-metadata">

**Author:** ![amblikmeez](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@amblikmeez](https://forum.ansible.com/u/amblikmeez)\
**Post date:** [September 9, 2021, 6:48am UTC](https://forum.ansible.com/t/awx-operator-k3s-and-inventory-import/35712/8 "2021-09-09T06:48:08Z")

</div>

As i understand, my project “Source Control Credential Type” must be something different, not manual yes ? Otherwise, it won’t work.

Kimmo L. kirjutas kolmapäev, 8. september 2021 kl 09:52:21 UTC+3:

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [September 9, 2021, 7:29am UTC](https://forum.ansible.com/t/awx-operator-k3s-and-inventory-import/35712/9 "2021-09-09T07:29:14Z")

</div>

What’s your project where your source files are? Click on the magnifying glass and locate your project (or did you do that)?

---

<div class="post-metadata">

**Author:** ![amblikmeez](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@amblikmeez](https://forum.ansible.com/u/amblikmeez)\
**Post date:** [September 9, 2021, 8:16am UTC](https://forum.ansible.com/t/awx-operator-k3s-and-inventory-import/35712/10 "2021-09-09T08:16:53Z")

</div>

I already did that yes. My “lab” project is located locally on the same host.

[weiye...@gmail.com](mailto:weiye...@gmail.com) kirjutas neljapäev, 9. september 2021 kl 10:29:21 UTC+3:

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [September 14, 2021, 12:04pm UTC](https://forum.ansible.com/t/awx-operator-k3s-and-inventory-import/35712/11 "2021-09-14T12:04:02Z")

</div>

Yeah sure. Rancher is essentially just a view into your kubernetes cluster. Just follow the instructions in awx. It will deploy into the kubernetes cluster. Once there and deployed and I want to upgrade I just use rancher to update the operator.

Let me know if there is anything specific thst you are looking for. 😊
