Re: [ansible-project] My playbook hangs during a task.

2020-02-25 Thread Ansible Krazy
We faced the same problem in our production. So if the node is slow//sluggish or goes unresponsive while playbook is running, Ansible will not leave the connection or in other words will keep waiting for output from the node(s). Well, in the case, playbooks seems to be hang. Try to use async poll

[ansible-project] Callback plugins works with ansible command?

2020-02-22 Thread Ansible Krazy
Hi Guys, We have been using customized callback plugin with playbooks ansile-playbooks command. I've been trying callback plugin to improve the output on screen with ansible command, however it is not working. Does callback plugin only works with ansible-playbooks or that's not the case?

Re: [ansible-project] Ansible custom plugin path change

2020-01-28 Thread Ansible Krazy
AM, Ansible Krazy wrote: > > Right now, by default custom plugins are stored in home directory : > ~/.ansible/plugins/callback Our custom plugins are > > placed in comman directory : say : /var/ansible/plugin > > > > We dont have comman user to login to perform production ac

[ansible-project] Ansible custom plugin path change

2020-01-27 Thread Ansible Krazy
Right now, by default custom plugins are stored in home directory : ~/.ansible/plugins/callback Our custom plugins are placed in comman directory : say : /var/ansible/plugin We dont have comman user to login to perform production activities, so if we make some changes in plugin placed in command

[ansible-project] Doc for plugin development

2020-01-08 Thread Ansible Krazy
Hi All, Is there any document to write own callback plugin. For example: in the below, what parameters result contains. Similarly variable_manager = play.get_variable_manager() def v2_runner_on_ok(self, result): Thanks! Megha -- You received this message because you are subscribed to the

[ansible-project] Ansible running command in two hosts and compare the outputs in one playbook

2019-01-28 Thread Ansible Krazy
Ask Question -1 I've one playbook which runs on 2,3 hosts. I want to compare output of a command run on host 1 with output of command run on host 2 Something like below - hosts: 1,2,3 tasks: - name: Check file in tmp shell: ls -ltrh

[ansible-project] Ansible way to show only failed tasks not any other

2018-05-22 Thread Ansible Krazy
HI all, I tried actionable and other callback plugins however it shows changed tasks also. Is there way to show only and only failed tasks on the screen Thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

Re: [ansible-project] Run multiple play books according to role

2018-02-22 Thread Ansible Krazy
So what if I want to run playbook a,b,c if group a and c,d,e if group type is b can it be achieved via one combined playbook On Thu, Feb 22, 2018 at 12:53 AM, Brian Coca wrote: > Your roles sounds like 'other type of group', i.e webserver, dbserver, > just define those as

[ansible-project] Running yml inside a playbook but different inventories

2018-02-01 Thread Ansible Krazy
Hi All, I've a requirement where i want to run a playbook inside the main playbook, however inventory(host) for inside playbook will be different For example : main.ini will be having hosts a, b, c, d whereas inside.ini r , h Is it possible to achieve this ? Any help will be appreciated --

Re: [ansible-project] Re: callback plugin log_plays double output in logs

2018-01-30 Thread Ansible Krazy
Is it also work if I use custom ansible.cfg file ... how to call callback plugins in custom ansible.cfg On Fri, Jan 12, 2018 at 2:27 PM, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 09.01.2018 22:00, ansiblekr...@gmail.com wrote: > >> So I defined it under

[ansible-project] Help in developing custom plugin

2017-12-29 Thread Ansible Krazy
Hi All, Can someone please guide me to develop/enhance some plugin. Want to know how to add debug statement in current plugin and test in Ansible. Thanks in advance -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

Re: [ansible-project] Enable playbook logging via callback plugin

2017-12-19 Thread Ansible Krazy
Okay... can someone please help me with the code to enable log rotation for log_plays module On Tue, Dec 19, 2017 at 8:55 PM, Brian Coca wrote: > You can create your own plugin to get the exact format you would like. > There are plenty of callbacks, but they normally meet the