Hello, I tried mitogen for the execution of some other ansible script and saw a significant difference in the time taken to complete the play. So thank you for this tool!
But is there no way to execute these roles in parallel? As I described before as well - My main playbook.yml file calls role-wise to initiate setup and then inside roles I have tasks for different components. All hosts are different and execution is independent of each other. On Monday, June 27, 2022 at 11:04:55 AM UTC-4 [email protected] wrote: > wondering about the 'why' of your question I I guess it is about speeding > up execution? > > There is an extension mitogen4ansible > <https://aperogeek.fr/ansible-mitogen/> which claims to speed up playbook > execution significantly. If I understand that correctly it is related to > parallelizing things in some way on a python level. Here is some youtube > food for thought > <https://www.youtube.com/results?search_query=mitogen+ansible> on this > > > > On 26.06.22 22:46, Shweta Krishnan wrote: > > New ansible user here. > > After deploying VMs, I want to run a folder called configs on the Jump > server to components like Syslog, NTP etc. for post configurations. > > This is the structure of how files are in the config folder > configs/ > ├─ hosts > ├─ group_vars > ├─ playbook.yml > ├─ roles/ > ├─ Ntp/ > ├─ tasks/ > ├─ vars/ > ├─ Syslog/ > ├─ vars/ > ├─ tasks/ > > This is how it is my main playbook - playbook.yml > - name: Setup config for ntp > hosts: comp1 > roles: - comp1 > > - name: Setup config for syslog > hosts: comp2 > roles: - comp2 > > Right now I run this command > > ansible-playbook -i hosts playbook.yml --limit "ntp,syslog" > > this runs the tasks sequentially. How can I execute this in parallel > considering there is no dependency between the components? > > -- > 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/835db2cd-ba3f-4987-abef-98486d068b96n%40googlegroups.com > > <https://groups.google.com/d/msgid/ansible-project/835db2cd-ba3f-4987-abef-98486d068b96n%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/908bf335-1890-4889-a00c-a5f36d47d670n%40googlegroups.com.
