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 -

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

2015-11-13 Thread Brian Coca
you can set a subsequent task to poll for it and have that use until/retry up to that limit, then register a result, next task can conditionally mail depending on that result -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[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