[ansible-project] Custom monitoring task in ansible

2020-06-25 Thread Jagadeeshkumar Dittakavi
I have a requirement where in I need to create a monitoring task to monitor other task completions (all are part of the same playbook). Mainly the monitoring task has to take certain actions based on the progress made by the running tasks. Essentially, I need a producer/consumer model where

Re: [ansible-project] Custom monitoring task in ansible

2020-06-25 Thread Jagadeeshkumar Dittakavi
k_on_task_start, v2_playbook_on_play_start > etc. > You need to write business logic inside these methods. You can check > existing callback plugins > https://github.com/ansible-collections/community.general/tree/master/plugins/callback > > Let me know if you have any questions. &g

Re: [ansible-project] Multi threading support in Ansible

2020-06-04 Thread Jagadeeshkumar Dittakavi
and in many cases it > was less performant, as it causes more CPU contention on a single core that > is already resource constrained. > > On Thu, Jun 4, 2020 at 1:18 PM Jagadeeshkumar Dittakavi < > d.jagad...@gmail.com > wrote: > >> I am a newbie to ansible but I got to explo

[ansible-project] Multi threading support in Ansible

2020-06-04 Thread Jagadeeshkumar Dittakavi
I am a newbie to ansible but I got to explore how to run a tasks in parallel by spawing a thread for each task instead of a process. My requirement is to run the playbook on my localhost and there is no remote task execution needed. I also would like to wait for all threads to complete before I

Re: [ansible-project] Multi threading support in Ansible

2020-06-04 Thread Jagadeeshkumar Dittakavi
o, concurrent.futures, gevent, etc. But I > don't expect this work to be complete any time soon. > > So for now, consider forking the only process model for the near future. > > On Thu, Jun 4, 2020 at 1:51 PM Jagadeeshkumar Dittakavi < > d.jagad...@gmail.com > wrote: > &g

Re: [ansible-project] Multi threading support in Ansible

2020-06-11 Thread Jagadeeshkumar Dittakavi
register: res - name: wait for the completion async_status: jid: "{{ res.ansible_job_id }}" register: output until: output.finished delay: 5 retries: 10 On Friday, June 5, 2020 at 9:50:19 AM UTC+5:30, Jagadeeshkumar Dittakavi wrote: > >

Re: [ansible-project] Multi threading support in Ansible

2020-06-11 Thread Jagadeeshkumar Dittakavi
t; > `forks` only limits how many workers can be launched by the primary > playbook process, not how many processes will be spawned as a result of the > worker. > > On Thu, Jun 11, 2020 at 7:01 AM Jagadeeshkumar Dittakavi < > d.jagad...@gmail.com > wrote: > >> @M