[ansible-project] Re: Wrapping roles inside blocks to catch failures

2016-11-20 Thread tinyzais
Would like to do the same trick. Have you found any workaround? On Monday, December 7, 2015 at 7:15:02 PM UTC+3, David Moreau Simard wrote: > > I love the idea around the new block > feature in > Ansible 2. > > The example in the

[ansible-project] How to maintein particula order via host groups and/or playbook

2016-10-23 Thread tinyzais
Hello, I dont know how to implement group ordering in the right way. Example: Start or Stop application with database. When starting: i need to start DB first, then APP itself When stopping: i need to do reverse order Right now i'm using groups inside inventory file, so it's easy to say that

[ansible-project] Re: Access group vars from callback module in ansible-2.0

2016-08-26 Thread tinyzais
I'm using below hacky approach (found somewere on the internet ;) def __init__(self): self.myvar = None def v2_playbook_on_play_start(self, play): var_mgr = play.get_variable_manager() p_vars = var_mgr.get_vars(loader=play.get_loader())

[ansible-project] Replace output of async_status?

2016-02-09 Thread tinyzais
It reports "FAILED - RETRYING: TASK: ..." Can it be customized, to print less dire text, like 'Still waiting ...' ? -- 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

[ansible-project] Re: ansible log_plays.py callback plugin not working with ansible 2.0.1 as expected

2016-02-03 Thread tinyzais
I believe you should use 'v2_' versions of functions in 2.0 On Wednesday, February 3, 2016 at 4:23:05 PM UTC+3, Ankit Kulkarni wrote: > > We are using ansible in our production and our log_plays callback plugin > just broke after upgrading from 1.9.4 to 2.0.0.1 . > > I need to put my custom

[ansible-project] Access group vars from callback module in ansible-2.0

2016-01-31 Thread tinyzais
Hello, I'm trying to write callback plugin for ansible. Below code was working on in ansible-1.9, but it isn't in ansible-2.0 def v2_playbook_on_play_start(self, play): self.play = play self.playbook = self.play.playbook self.inventory = self.playbook.inventory

Re: [ansible-project] Get email alert if async task runs for more than XX mins/hours?

2015-11-16 Thread tinyzais
--- - hosts: all vars: timeout_retries: 2 # number or poll tries timeout_delay: 10 # delay between polls email_list: "y...@email.com" tasks: - name: laucnhing long task shell: "/bin/sleep 30; echo trololo" async: 6 poll: 0 register: long_task -

[ansible-project] Get email alert if async task runs for more than XX mins/hours?

2015-11-13 Thread tinyzais
Is it possible? -- 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 post to this group, send email to

[ansible-project] Playbook name/path in callback plugin

2015-11-12 Thread tinyzais
Is it possible to get playbook name and/or path from within callback plugin? -- 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] Re: cant install on os x 10.11

2015-11-10 Thread tinyzais
I believe recommended way is to use homebrew. On Tuesday, November 10, 2015 at 12:20:09 PM UTC+3, pixel fairy wrote: > > easy install pip worked. but when trying to install ansible, this happens. > it looks like a connection error. maybe intermittent failure? > > $ sudo pip install ansible >