Re: [ansible-project] Can I run plays in parallel?

2019-08-27 Thread Jonathan Lozada De La Matta
Right. Just mentioning an option.

On Tue, Aug 27, 2019 at 4:37 PM Kai Stian Olstad <
ansible-project+l...@olstad.com> wrote:

> On 27.08.2019 22:33, Jonathan Lozada De La Matta wrote:
> > you can run multiple plays in one playbook. For example:
> >
> > hosts: localhost
> > roles:
> >- create_vm
> >
> > hosts: vm_created
> > roles:
> >- configure_vm
> >
> > this also assumes you are using add_host in the first play.
>
> Nick is asking for play in parallel, this will still be serial.
>
>
> --
> Kai Stian Olstad
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/e374f21a-c854-706b-8bd4-a6f030da9609%40olstad.com
> .
>


-- 

Jonathan Cha'gara Lozada De La Matta

He / Him / His

Red Hat 

Senior Automation Practice Consultant & Automation CoP Manager

Join the Automation CoP! https://red.ht/autocop
@redhatjobs    redhatjobs
 @redhatjobs



-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BLzwJOQzWuA00AGqrp7rGZTub_tk0ggXvuHyrBiLEHy9g%40mail.gmail.com.


Re: [ansible-project] Can I run plays in parallel?

2019-08-27 Thread Kai Stian Olstad
On 27.08.2019 22:33, Jonathan Lozada De La Matta wrote:
> you can run multiple plays in one playbook. For example:
> 
> hosts: localhost
> roles:
>- create_vm
> 
> hosts: vm_created
> roles:
>- configure_vm
> 
> this also assumes you are using add_host in the first play.

Nick is asking for play in parallel, this will still be serial.


-- 
Kai Stian Olstad

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e374f21a-c854-706b-8bd4-a6f030da9609%40olstad.com.


Re: [ansible-project] Can I run plays in parallel?

2019-08-27 Thread Jonathan Lozada De La Matta
you can run multiple plays in one playbook. For example:

hosts: localhost
roles:
  - create_vm

hosts: vm_created
roles:
  - configure_vm

this also assumes you are using add_host in the first play.

On Tue, Aug 27, 2019 at 4:26 PM Kai Stian Olstad <
ansible-project+l...@olstad.com> wrote:

> On 27.08.2019 22:21, Nick Kakouros wrote:
> > Is there a way to say to ansible to run all plays in parallel? I could
> find
> > workaround in bash, but I would like to know if this is possible in
> ansible.
>
> It's not possible in Ansible, so you would need to run multiple
> ansible-playbook in bash.
>
>
> --
> Kai Stian Olstad
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/e1c11175-13f9-0f47-d74c-71744a9e36a6%40olstad.com
> .
>


-- 

Jonathan Cha'gara Lozada De La Matta

He / Him / His

Red Hat 

Senior Automation Practice Consultant & Automation CoP Manager

Join the Automation CoP! https://red.ht/autocop
@redhatjobs    redhatjobs
 @redhatjobs



-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFYJA%2B%2B7h-WQpEOmYL6-%3DvGmc3t9Rj95hANbnbCGYTM-8YQc1w%40mail.gmail.com.


Re: [ansible-project] Can I run plays in parallel?

2019-08-27 Thread Kai Stian Olstad
On 27.08.2019 22:21, Nick Kakouros wrote:
> Is there a way to say to ansible to run all plays in parallel? I could find
> workaround in bash, but I would like to know if this is possible in ansible.

It's not possible in Ansible, so you would need to run multiple 
ansible-playbook in bash.


-- 
Kai Stian Olstad

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e1c11175-13f9-0f47-d74c-71744a9e36a6%40olstad.com.