'Ansible Dependency Forest
I am trying to figure out a way to create a dependency forest using Ansible, but I cannot find any solutions. I've tried roles, playbooks, import_tasks, but nothing worked. The problem is:
Let's say I have multiple sets of tasks that depend on each other resulting in a forest of dependency trees:
DevOps - - - - - dep1
¦ - - dep2
Dev - - - - - dep3
¦ - - dep4 - - - - - - dep5
¦ - - dep6
where dep[i] is a list of tasks, a playbook etc.
The main point is that it has to run dependencies before running its own tasks. If the dependencies fail, the node shall NOT run. If a dependency in the DevOps tree fails, the tasks in DevOps will not run anymore, but the tasks in the Dev tree should run because they do NOT depend on the DevOps tree.
In Ansible, if a dependency fails, the execution will stop, even if there are tasks that have no dependencies on the failing node.
If you could help me with this problem, it would be much appreciated!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
