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.

Reply via email to