N
N
Nikon_NLG2016-03-29 14:24:35
Ansible
Nikon_NLG, 2016-03-29 14:24:35

How to create a shared playbook?

There are several groups of servers, conditionally alfa, beta, gamma.
Each of them has its own playbook with separate and common tasks, such as:
alfa.yml
- hosts: alfa
- roles:
- common
- nginx
beta.yml
- hosts: beta
- roles:
- common
- database
How to create such a meta-playbook , which would run all the others? It is clear that you can make include, but then they will be executed step-by-step, and not in parallel. Or I'm wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2016-04-02
@opium

they are now performed by you step by step

O
oni__ino, 2016-04-12
@oni__ino

If the question is still relevant, then ansible 1.8+ has such an opportunity.
Asynchronous Actions and Polling
docs.ansible.com/ansible/playbooks_async.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question