[ansible-project] Re: Async tasks running Bash scripts with background jobs

2016-01-05 Thread Tomasz Kuchta
My bad - the background job is actually running - I just needed to use absolute paths. Sorry for confusion. On Tuesday, 5 January 2016 11:51:33 UTC, Tomasz Kuchta wrote: > > Hi All, > I have an async command that is invoking a Bash script. > The script invokes some other scripts i

[ansible-project] Async tasks running Bash scripts with background jobs

2016-01-05 Thread Tomasz Kuchta
Hi All, I have an async command that is invoking a Bash script. The script invokes some other scripts in background (using "&"). I have noticed that the background command is either not called or it terminates immediately (not sure). The same script works in non-asynchronous mode (using the shell

Re: [ansible-project] Question about the script module

2015-11-25 Thread Tomasz Kuchta
Thanks, Brian! On Wednesday, 25 November 2015 20:05:12 UTC, Brian Coca wrote: > > yes, loops normally execute each task independently per iteration. > > -- > Brian Coca > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from

[ansible-project] Question about the script module

2015-11-25 Thread Tomasz Kuchta
Hello, If the script module is used in a loop, will it transfer the script to the remote on every iteration of the loop? Thank you, Tomek -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving ema

[ansible-project] Using special characters in filtered strings

2015-11-16 Thread Tomasz Kuchta
Hi, I got stuck with the following: Imagine we have a string in stdout of a command that we would like to filter out: Error123: some 'thing' (happened) If we want to filter that out we would do something like "{{ item.stderr.regex_replace('Error[0-9]+: some \\'thing\\' \\(happened\\)', '') }}