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 ?

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]>
wrote:

> On Wed, Nov 25, 2020 at 1:56 PM Vladimir Botka <[email protected]> wrote:
> >
> > On Wed, 25 Nov 2020 10:06:41 -0800 (PST)
> > Prathap Dasari <[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
> >
> > 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
> >
> > 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].
> > To view this discussion on the web visit
> 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].
> To view this discussion on the web visit
> 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CANCC9rL7tUwCCZKN_gpbW0aEJUSs29vJ1nxbYXU5NnFe3XYjNQ%40mail.gmail.com.

Reply via email to