Hello,
If you want to configure playbooks in easy way without using serial, you
can write like this way too.
---
- name: playbook 1 for host 1
  hosts: 10.0.10.100
  tasks:
  - name: install app

---
- name: playbook 1 for host 2
  hosts: 10.0.10.200
  tasks:
  - name: install app

---
- name: playbook 2 for host 1
  hosts: 10.0.10.100
  tasks:
  - name: install app

---
- name: playbook 2 for host 2
  hosts: 10.0.10.100
  tasks:
  - name: install app

On Thu, Nov 26, 2020 at 1:16 PM blue fox <[email protected]> wrote:

> Yes ,  i looked that, but i need to run playbook for one host after run
> another playbook after return for running the playbook1 for  the second
> host.
> Example:
>
> Playbook1 for 10.10.10.10
> Playbook2 for another host
> playbook1 for 20.20.20.20
> playbook2 for another host and continue executing another playbook
>
> Thank you
> Le jeudi 26 novembre 2020 à 04:29:56 UTC+1, [email protected] a écrit :
>
>> Use serial=1
>>
>>
>> https://docs.ansible.com/ansible/latest/user_guide/playbooks_strategies.html#setting-the-batch-size-with-serial
>>
>>
>> On Thu, 26 Nov 2020 at 01:25, blue fox <[email protected]> wrote:
>>
>>> Hello;
>>>
>>> How to run 3 playbooks for each server alone:
>>>
>>> Example:
>>>
>>> [webservers]
>>> 10.10.10.10
>>> 20.20.20.20
>>>
>>> Run les 3 playbook for 10.10.10.10, after run it for 20.20.20.20
>>>
>>> Thank you
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/f0609b04-3912-4c32-81d2-22ea4d1e01c2n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/f0609b04-3912-4c32-81d2-22ea4d1e01c2n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> Sent from a mobile device - please excuse the brevity, spelling and
>> punctuation.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/c68ed54f-72af-43ec-8c70-6198ffe7d0d3n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/c68ed54f-72af-43ec-8c70-6198ffe7d0d3n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEVA6Sv-MHgr1y%2BOvW5uN_zAR2SByf52v0-hsBip5D69cegtjg%40mail.gmail.com.

Reply via email to