[ansible-project] Re: how to use an pipe like < < in ansible ?

2018-08-21 Thread dmartin
Use the shell module. On Tuesday, August 21, 2018 at 10:45:44 AM UTC-7, Henrik Schuetze wrote: > > i want to use a command like: > > read CURRENT_LOG CURRENT_POS < <( mysql -BNe "SHOW MASTER STATUS"); echo > CURRENT_LOG=$CURRENT_LOG CURRENT_POS=$CURRENT_POS > (credits: > https://dba.stackexchan

[ansible-project] Re: how to use an pipe like < < in ansible ?

2018-10-10 Thread Henrik Schuetze
no. this doesnt work, because the shell command only support one "<" -- 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

Re: [ansible-project] Re: how to use an pipe like < < in ansible ?

2018-10-10 Thread Toshio Kuratomi
Without an error message I'm not sure whether I'm looking at the same thing but this looks like a portability problem with the shell script you are attempting to use. In /bin/sh (implemented by bash), I get the following error: $ /bin/sh *[stable-2.7]

Re: [ansible-project] Re: how to use an pipe like < < in ansible ?

2018-10-10 Thread Dave Cottlehuber
Try using ‘tee -a …’ in the pipeline. Dave -- 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 thi