# Advices on AWX different way of configuration

**URL:** <https://forum.ansible.com/t/advices-on-awx-different-way-of-configuration/2582>\
**Category:** Get Help\
**Tags:** awx-operator, collections, awx, kubernetes\
**Created:** [November 27, 2023, 9:53am UTC](https://forum.ansible.com/t/advices-on-awx-different-way-of-configuration/2582 "2023-11-27T09:53:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![motorbass](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@motorbass](https://forum.ansible.com/u/motorbass)\
**Post date:** [November 27, 2023, 9:53am UTC](https://forum.ansible.com/t/advices-on-awx-different-way-of-configuration/2582/1 "2023-11-27T09:53:55Z")

</div>

Hi,

As i’m currently learning K8s while using AWX, i need some advices on how to handle/set AWX configuration:

I know how to deploy an instance of AWX (thanks to awx-operator) but also to customize it basically through K8s using the Advanced Options here [Default execution environments from private registries - Ansible AWX Operator Documentation](https://ansible.readthedocs.io/projects/awx-operator/en/latest/user-guide/advanced-configuration/default-execution-environments-from-private-registries.html)

I’d say I know how to configure the “bottle” but not the “substance”.

At the moment, once my AWX instance is set, I spend time to create credentials, to setup LDAP, setup template project and so on…

\*\*So my question is : How can I perform these actions in a declarative way ? \*\*  
Is it possible to do it from a K8s perspective ? or should I go to ansible-playbook to talk with AWX API for these kind of actions ?

Thanks a lot for your help and precious advices 🙂

Gael

---

<div class="post-metadata">

**Author:** ![souovan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/souovan/32/1637_2.png) [@souovan](https://forum.ansible.com/u/souovan)\
**Post date:** [November 27, 2023, 12:50pm UTC](https://forum.ansible.com/t/advices-on-awx-different-way-of-configuration/2582/2 "2023-11-27T12:50:10Z")

</div>

Hi Gael, if i understood what you mean you maybe is looking for this [Index of all Modules — Ansible Documentation](https://docs.ansible.com/ansible/latest/collections/index_module.html#awx-awx)

Vinicius

---

<div class="post-metadata">

**Author:** ![motorbass](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@motorbass](https://forum.ansible.com/u/motorbass)\
**Post date:** [November 27, 2023, 1:00pm UTC](https://forum.ansible.com/t/advices-on-awx-different-way-of-configuration/2582/3 "2023-11-27T13:00:35Z")

</div>

Hi ! yes it’s probably a part of, the link you provided is to configure AWX through Ansible.  
Is it the preferable way to configure it ?

My 1st question was about the possibility to configure AWX settings within K8s (with a deploy file for instance).

---

<div class="post-metadata">

**Author:** ![laurent-indermuehle](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/laurent-indermuehle/32/289_2.png) [@laurent-indermuehle](https://forum.ansible.com/u/laurent-indermuehle)\
**Post date:** [November 27, 2023, 1:16pm UTC](https://forum.ansible.com/t/advices-on-awx-different-way-of-configuration/2582/4 "2023-11-27T13:16:12Z")

</div>

I think the best way is to put everything in YAML files in GIT, and then use AWX to configure itself.

And there is even a template almost perfect for that: [GitHub - redhat-cop/aap\_configuration\_template: Ansible Automation Platform Configuration as Code examples template](https://github.com/redhat-cop/aap_configuration_template)

I say almost because I find it a hard to use, but it has everything we need! 😃 (except for the installation, but since there is awx-operator, in your case it’s not an issue)

---

<div class="post-metadata">

**Author:** ![souovan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/souovan/32/1637_2.png) [@souovan](https://forum.ansible.com/u/souovan)\
**Post date:** [November 27, 2023, 1:18pm UTC](https://forum.ansible.com/t/advices-on-awx-different-way-of-configuration/2582/5 "2023-11-27T13:18:08Z")

</div>

Looking at the AWX Operator documentation as you mentioned ([Ansible AWX Operator Documentation](https://ansible.readthedocs.io/projects/awx-operator/en/latest/index.html)) i didn’t find a way of configuring the AWX from the k8s perspective. I really don’t know if it’s possible, the declarative way i know it’s by the awx.awx module. If you find a way let met know !

---

<div class="post-metadata">

**Author:** ![motorbass](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@motorbass](https://forum.ansible.com/u/motorbass)\
**Post date:** [November 27, 2023, 1:19pm UTC](https://forum.ansible.com/t/advices-on-awx-different-way-of-configuration/2582/6 "2023-11-27T13:19:26Z")

</div>

@laurent-indermuehle@souovan merci for your answers ! I’ll have a look at the documentation + the GitHub repo mentionned 🙂 it will be a great option i guess !

---

<div class="post-metadata">

**Author:** ![kurokobo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kurokobo/32/182_2.png) [@kurokobo](https://forum.ansible.com/u/kurokobo)\
**Post date:** [November 27, 2023, 1:37pm UTC](https://forum.ansible.com/t/advices-on-awx-different-way-of-configuration/2582/7 "2023-11-27T13:37:03Z")

</div>

Most of configurations under `Settings` in AWX UI can be configured through `extra_settings` of AWX CR, since the keys and values that passed over `extra_settings` will simply be embedded to `settings.py` for AWX.

In addition to `extra_settings`, this is a bit different approach, but there is an Operator to manage resources on AWX as CR: [GitHub - ansible/awx-resource-operator](https://github.com/ansible/awx-resource-operator)

I’m not tested well but there seems to be following CRD:

- Credentials
- Instance Groups
- Inventories
- Jobs
- Projects
- Schedules
- Workflows
- Job Templates
- Workflow Templates

---

<div class="post-metadata">

**Author:** ![motorbass](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@motorbass](https://forum.ansible.com/u/motorbass)\
**Post date:** [November 27, 2023, 2:19pm UTC](https://forum.ansible.com/t/advices-on-awx-different-way-of-configuration/2582/8 "2023-11-27T14:19:47Z")

</div>

Interesting way of doing it.  
So it means I should clone the repo, change the values I need and then deploy it without Helm.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [December 27, 2023, 2:20pm UTC](https://forum.ansible.com/t/advices-on-awx-different-way-of-configuration/2582/9 "2023-12-27T14:20:35Z")

</div>

Closed on December 27, 2023, 2:20pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
