Skip to content

Conversation

@Tompage1994
Copy link
Collaborator

What does this PR do?

Adds a strategy plugin for checking that all dependent Job Templates for a playbook are met in Controller (i.e. we use job_launch to call it). It uses the same var as the job_launch role to check for these dependencies (controller_launch_jobs).

This comes from a customer use case where we want to create a pattern of launching jobs from inside playbooks, but we want to do a dependency check first to ensure that we don't fail half way through because of missing dependencies. This is similar to what happens for other dependencies (i.e. it checks to make sure roles, modules etc. exist before running)

How should this be tested?

Add to your ansible.cfg

[defaults]
strategy = infra.aap_configuration.job_template_check

Is there a relevant Issue open for this?

No

Other Relevant info, PRs, etc

It would be nice to backport this to infra.controller_configuration as well

@Tompage1994 Tompage1994 requested a review from a team as a code owner October 28, 2024 12:12
@djdanielsson
Copy link
Collaborator

I am fine with back porting it but I am thinking this should be in extended

@sean-m-sullivan
Copy link
Collaborator

Agree, I think this collection should be wrapper roles only, its what we think can get into the platform collection once they start accepting roles, or the awx.awx collection, these are the roles we think CAN get supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants