How to Dynamically Set Host(s) for an Ansible Job/Playbook
Issue
-
When managing several nodes, it may be necessary to dynamically choose one or more for playbook execution without needing to prepare multiple playbooks.
-
The goal is to have a single job with a playbook that can run for specific nodes each time.
Environment
- Ansible Automation Platform 2.*
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.