Sorry, the shell action line should read:
shell: bash < <( curl {{rvm_fw_url}}/releases/rvm-install-latest )
I tried to escape it as a debug measure with no success.
Thanks!
On Friday, November 29, 2013 6:27:46 PM UTC-5, Steven Haddox wrote:
>
> I'm trying to run a task that invokes bash as part of the task. The
> command works directly from the user's command line on the box but fails
> when run via Ansible:
>
> Here's the task that's running:
>
> - name: Install User RVM via RVM::FW
> when: rvm_fw == True and rvm_version.rc != 0
> shell: \bash < <( curl {{rvm_fw_url}}/releases/rvm-install-latest )
> register: rvm_install
> failed_when: rvm_install.rc != 0
>
> And the resulting output:
>
> TASK: [ruby | Install User RVM via RVM::FW]
> ***********************************
> failed: [33.33.33.10] => {"changed": true, "cmd": "\\bash < <( curl
> http://rvm-fw.herokuapp.com/releases/rvm-install-latest ) ", "delta":
> "0:00:00.002708", "end": "2013-11-29 18:23:45.768494", "failed": true,
> "failed_when_result": true, "item": "", "rc": 2, "start": "2013-11-29
> 18:23:45.765786", "stdout_lines": []}
> stderr: /bin/sh: -c: line 0: syntax error near unexpected token `<'
> /bin/sh: -c: line 0: `\bash < <( curl
> http://rvm-fw.herokuapp.com/releases/rvm-install-latest ) '
>
> Any ideas on how to tweak this line so that Ansible's shell module will
> pass it through properly?
>
> Ansible version is 1.4.0 currently.
>
> Thanks for everyone's help as always,
>
> Steven
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.