Configuring management jobs outside of GUI

Hello,

is there a possibility to configure the values inside management jobs outside of the gui?
I couldn’t find anything stating, that i can configure the management jobs before deploying/redeploying my awx instances or changing the defaults.

Thanks
Purp

Hi Purp,

We’re not 100% sure if this will answer your question but the system management jobs run based off of schedules and those schedules should have parameters. So if you hit /api/v2/schedules you should see schedules there for your system jobs and those should have extra data. For example, my cleanup activity steam has extra_data of:
“extra_data”: { “days”: “355” }

So you could change the parameters to the schedules outside of the GUI using whatever tool you wanted.

Let us know if this is what you were looking to do.

-The AWX Team

Thanks for the answer,

I was looking into changing the default values of the parameters. My goal is to deploy awx automatically without having to do manual changes afterwards via gui or api.
As of right now I first have to deploy AWX and then make manual configurations, but I’m looking into configuring these parameters beforehand.

Best Purp

currently these are hardcoded in the AWX migration files. e.g. https://github.com/ansible/awx/blob/6c1adade250020fcf900ecfc6d33e6f8274c8e0a/awx/main/migrations/0002_squashed_v300_release.py#L47

So there no good way to set these before deploying the app. This will need to be a day two sort of operation to set these values.

Might be a good feature request, so I’d encourage you to open an AWX github issue describing the use case.

AWX Team

I use redhat-cop-aap-configuration roles to manage my controller after install