redhat-cop / aap_utilities

Ansible Collection for automated deployment of AAP and other objects for general use
https://galaxy.ansible.com/infra/aap_utilities
GNU General Public License v3.0
80 stars 49 forks source link

Add management roles/playbooks #100

Open ansiblejunky opened 2 years ago

ansiblejunky commented 2 years ago

Managing multiple AAP instances (dev,test,prod) or in different network zones is a challenge. The tasks often performed are:

Basic "Day 2" operations on AAP platform.

So, for example, I want to bring AAP down for some maintenance or whatnot, perhaps I run a playbook that ensures all running jobs are stopped, no new jobs are running, and then I shutdown the web layer (controller), the app layer (exec nodes) and then database layer (postgres) in that order to ensure a clean shutdown sequence. A playbook like that would be cool, which uses roles that support managing the different services (postgres, etc)

Or maybe I just want to bounce the postgres database service. Use a playbook/role for that. "aap_manage_postgres.yml" playbook would be called with extra var mode=restart for example.

djdanielsson commented 2 years ago

thanks for the idea, PRs are welcome :) but I do agree that some of those tasks would be useful to have a role to do.