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 <raubvo...@gmail.com 
> <mailto:raubvo...@gmail.com>> wrote:
> 
>     On Wed, Nov 25, 2020 at 1:56 PM Vladimir Botka <vbo...@gmail.com 
> <mailto:vbo...@gmail.com>> wrote:
>     >
>     > On Wed, 25 Nov 2020 10:06:41 -0800 (PST)
>     > Prathap Dasari <prathap12...@gmail.com <mailto:prathap12...@gmail.com>> 
> 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
>     ansible-project+unsubscr...@googlegroups.com 
> <mailto:ansible-project%2bunsubscr...@googlegroups.com>.
>     > 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
>     ansible-project+unsubscr...@googlegroups.com 
> <mailto:ansible-project%2bunsubscr...@googlegroups.com>.
>     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
> ansible-project+unsubscr...@googlegroups.com 
> <mailto:ansible-project+unsubscr...@googlegroups.com>.
> 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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a3219279-c0e9-376f-0d6b-9a76bbfb3794%40linuxia.de.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to