8
8
80h2017-05-12 07:07:47
Ansible
80h, 2017-05-12 07:07:47

How to make a role wait for the previous role to reboot before executing?

There is this playbook:

---
- hosts: test
  gather_facts: False
  vars:
    - hostname: test
  roles:
    - { role: common, become: yes } 
    - { role: percona-server, become: yes }

In the common role, a reboot is required.
How to make the percona-server role wait for common's reboot and execute?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2017-05-12
@opium

so the roles are performed in turn, she will always wait

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question