Automating the playbooks promotion to production

Hello team,

I am new to Awx and I find tool very interesting to learn.

Recently , our project went live but we had to manually create and deploy playbooks from dev to production.

I am looking for options on how to automate the code promotion(more than 10 gitlab projects at a time) using gitlab or any cicd tool from test to production.

Thank you in advance.

Venkata

You should befine a production branch in each project. In awx for production deployment refer to the production branch

We are using same approach however, we need to sync the playbook from production branch during deployment.

I am not in favor of that method, one should only pull from production after testing has released to production. I recommend that at the end of testing and passing is when it is synced/committed to production. We had a bad experience at one of my old companies with the way you are running now , code was added to test and they pulled to production and took down the app stack

Create a production branch from each git dev branch and add the production branches to AWX when your dev is ready to deploy.

Thank you for inputs. Are there any other best practices that can help us? We are first time users. So any suggestion is welcomed. Thank you again?

Hi,

Also, if you haven’t already, be sure to checkout the awx.awx collection and write plays to help keep projects, job templates synced across your development and production installations.

Seth