Ansible Jobs
AutomationAnsible Jobs uses a stored Ansible Tower connection to list job/workflow templates and launch jobs, then polls job status and output over plain REST rather than live-streaming — most jobs that matter in Mastermind go through an approval step inside Tower itself anyway, so polling every few seconds is enough to keep up.
Job Mappings — the piece that ties the whole app together
This is the single most important concept in this plugin, and arguably one of the most important in all of Mastermind: nothing in the rest of the app hardcodes the name of a specific Tower job or workflow template. Instead, every action anywhere in Mastermind that needs to launch something in Tower (installing a Helm chart via Ecopoeisis, creating a node pool, restarting a deployment, deploying a WAF policy, deploying a Deployment Sets release, ...) refers to a fixed internal "action key." The Job Mappings page is where an administrator tells Mastermind, for a given Tower instance, which actual job template on that instance should run for each action key.
This means: if an action in Mastermind doesn't seem to do anything when you click it, or fails immediately with an error about a missing mapping, the fix is almost always to go to Job Mappings and map that action's key to the right Tower template for the relevant Tower instance — not a bug in whichever plugin you were using.
Two pages
- Ansible Jobs — list job templates on a connected Tower instance, and view the status/output of jobs that have been launched.
- Job Mappings — the action-key-to-template configuration table described above.
Permissions
read (view templates, job status, and output), launch
(actually trigger a job — kept separate from read, since viewing status
shouldn't require also being allowed to start new jobs), and manage (edit
Job Mappings).