Hi ,

There is no dependency between below two yaml file and also the 
patching.yaml and second yaml files  will be  taking  at 20 mins to 
complete task ,hence I am planning to run both yaml file at the same, to 
reduce the time if it´s possible.

Regards,
Prathap 

On Wednesday, November 25, 2020 at 8:45:33 PM UTC+1 [email protected] wrote:

> On 11/25/20 8:41 PM, Prathap Dasari wrote:
> > Ok . But I have below two yml files. 
> > There is no dependence between both yml files . Now How can I run them 
> parallel at the same time ? Any advice please ?
> > 
>
> Why do you want them to run in parallel? What are these roles are doing?
>
> Regards
> Racke
>
> > i.e :
> > 
> > *patching.yml*
> > ---
> >   - hosts: soa_admin
> >     tasks:
> >      - include_role:
> >          name: patching
> > *createdomainwldt.yml*
> > ---
> >  - hosts: soa_admin
> >    tasks:
> >      - include_role:
> >          name: osbdomain
> > 
> > 
> > Regards,
> > Prathap
> > 
> > On Wed, Nov 25, 2020 at 8:22 PM Mauricio Tavares <[email protected] 
> <mailto:[email protected]>> wrote:
> > 
> > On Wed, Nov 25, 2020 at 1:56 PM Vladimir Botka <[email protected] 
> <mailto:[email protected]>> wrote:
> > >
> > > On Wed, 25 Nov 2020 10:06:41 -0800 (PST)
> > > Prathap Dasari <[email protected] <mailto:[email protected]>> 
> wrote:
> > >
> > > > I would like to run playbooks parallel . is it possible ?
> > >
> > > No. It's not possible. The utility "ansible-playbook" is not able to
> > > run playbooks in parallel. Only serial execution of plays or imported
> > > playbooks is available. See "import_playbook"
> > > 
> https://docs.ansible.com/ansible/latest/collections/ansible/builtin/import_playbook_module.html
> > <
> https://docs.ansible.com/ansible/latest/collections/ansible/builtin/import_playbook_module.html
> >
> > >
> > > Hypothetical asynchronous task "include_playbook" is probably what you
> > > might be looking for. There is no such module and there are no
> > > options how to create such task. Only tasks can be run in parallel.
> > > See "Asynchronous actions and polling"
> > > 
> https://docs.ansible.com/ansible/latest/user_guide/playbooks_async.html
> > <https://docs.ansible.com/ansible/latest/user_guide/playbooks_async.html
> >
> > >
> > > You'll have to start "ansible-playbook" for each playbook you want to
> > > run in parallel.
> > >
> >       That was exactly what I was going to suggest: start multiple
> > "ansible-playbook" instances in parallel.
> > 
> > > --
> > > Vladimir Botka
> > >
> > > --
> > > 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] <mailto:
> ansible-project%[email protected]>.
> > > To view this discussion on the web visit
> > 
> https://groups.google.com/d/msgid/ansible-project/20201125195606.611d27f2%40gmail.com
> > <
> https://groups.google.com/d/msgid/ansible-project/20201125195606.611d27f2%40gmail.com
> >.
> > 
> > -- 
> > 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] <mailto:
> ansible-project%[email protected]>.
> > To view this discussion on the web visit
> > 
> https://groups.google.com/d/msgid/ansible-project/CAHEKYV7t6jja1yuTL1XAV4%3DpcmfHi1ANXxjx41tjuwyka9a_wQ%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/ansible-project/CAHEKYV7t6jja1yuTL1XAV4%3DpcmfHi1ANXxjx41tjuwyka9a_wQ%40mail.gmail.com
> >.
> > 
> > -- 
> > 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] <mailto:
> [email protected]>.
> > To view this discussion on the web visit
> > 
> https://groups.google.com/d/msgid/ansible-project/CANCC9rL7tUwCCZKN_gpbW0aEJUSs29vJ1nxbYXU5NnFe3XYjNQ%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/ansible-project/CANCC9rL7tUwCCZKN_gpbW0aEJUSs29vJ1nxbYXU5NnFe3XYjNQ%40mail.gmail.com?utm_medium=email&utm_source=footer
> >.
>
>
> -- 
> Ecommerce and Linux consulting + Perl and web application programming.
> Debian and Sympa administration. Provisioning with Ansible.
>
>

-- 
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/941582d4-e59e-40c6-9ab7-f80f8fc8f93cn%40googlegroups.com.

Reply via email to