March 2019
Intermediate to advanced
412 pages
9h 49m
English
Roles can express a dependency upon another role. It is a common practice for sets of roles to all depend on a common role for tasks, handlers, modules, and so on. Those roles may depend upon only having to be defined once. When Ansible processes a role for a set of hosts, it will first look for any dependencies listed in roles/<role_name>/meta/main.yaml. If any are defined, those roles will be processed and the tasks within will be executed (after checking for any dependencies listed within, too) until all dependencies have been completed before starting on the initial role tasks. We will describe role dependencies in more depth later in this chapter.
Read now
Unlock full access