We have these 3 ansible-playbooks and Jenkins jobs:
- web/deploy_app
- app/deploy_app
- db/deploy_app
Each playbook runs on only 2 nodes, the web-playbook has an inventory of only 2 hosts, web01 and web02, the app-playbook has an inventory of only app01/app02.
Now we want to build "no-downtime deployments", which means a service on app01 must be shut down before the deployment of db01.
How can I run a play on app01 in Ansible when app01 is not even in the Ansible inventory for the db01/deploy_app playbook?