# Fatal error - Ambiguous output redirect

**URL:** <https://forum.ansible.com/t/fatal-error-ambiguous-output-redirect/19143>\
**Category:** Ansible Project\
**Created:** [August 29, 2015, 2:34am UTC](https://forum.ansible.com/t/fatal-error-ambiguous-output-redirect/19143 "2015-08-29T02:34:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francisco\_Reyes](https://avatars.discourse-cdn.com/v4/letter/f/b77776/32.png) [@Francisco\_Reyes](https://forum.ansible.com/u/Francisco_Reyes)\
**Post date:** [August 29, 2015, 2:34am UTC](https://forum.ansible.com/t/fatal-error-ambiguous-output-redirect/19143/1 "2015-08-29T02:34:55Z")

</div>

I was setting up 2 test machines and getting the error below. Any ideas/suggestions?  
I tried reading the error below, but can’t figure out the error.

ESTABLISH SSH CONNECTION FOR USER: root  
 EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=“/tmp/ansible-ssh-%h-%p-%r” -o Port=2233 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 csync1 mkdir -p “$HOME/.ansible/tmp/ansible-tmp-1440815362.34-115931972146261” && echo “$HOME/.ansible/tmp/ansible-tmp-1440815362.34-115931972146261”  
 ESTABLISH SSH CONNECTION FOR USER: root  
 PUT /tmp/tmpTtxtZb TO /root/.ansible/tmp/ansible-tmp-1440815362.34-115931972146261/setup  
 ESTABLISH SSH CONNECTION FOR USER: root  
 EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=“/tmp/ansible-ssh-%h-%p-%r” -o Port=2233 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 csync1 LANG=C LC\_MESSAGES=C LC\_CTYPE=C /usr/local/bin/python /root/.ansible/tmp/ansible-tmp-1440815362.34-115931972146261/setup; rm -rf “/root/.ansible/tmp/ansible-tmp-1440815362.34-115931972146261/” \>/dev/null 2\>&1

fatal: [csync1]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “Ambiguous output redirect.\r\nOpenSSH\_6.6.1, OpenSSL 1.0.1f 6 Jan 2014\r\ndebug1: Reading configuration data /home/fran/.ssh/config\r\ndebug1: /home/fran/.ssh/config line 3: Applying options for csync1\r\ndebug1: Reading configuration data /etc/ssh/ssh\_config\r\ndebug1: /etc/ssh/ssh\_config line 19: Applying options for \*\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O\_NONBLOCK\r\ndebug2: mux\_client\_hello\_exchange: master version 4\r\ndebug3: mux\_client\_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux\_client\_request\_session: entering\r\ndebug3: mux\_client\_request\_alive: entering\r\ndebug3: mux\_client\_request\_alive: done pid = 14898\r\ndebug3: mux\_client\_request\_session: session request sent\r\ndebug1: mux\_client\_request\_session: master session id: 2\r\ndebug3: mux\_client\_read\_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\nShared connection to csync1 closed.\r\n”, “parsed”: false}

---

<div class="post-metadata">

**Author:** ![Francisco\_Reyes](https://avatars.discourse-cdn.com/v4/letter/f/b77776/32.png) [@Francisco\_Reyes](https://forum.ansible.com/u/Francisco_Reyes)\
**Post date:** [August 29, 2015, 2:44am UTC](https://forum.ansible.com/t/fatal-error-ambiguous-output-redirect/19143/2 "2015-08-29T02:44:10Z")

</div>

ansible-playbook 2.0.0 (devel 6154ed1dda) last updated 2015/08/28 22:28:56 (GMT -400)  
lib/ansible/modules/core: (detached HEAD 66288d48a2) last updated 2015/08/28 22:28:59 (GMT -400)  
lib/ansible/modules/extras: (detached HEAD 8d8f1c510d) last updated 2015/08/28 22:29:01 (GMT -400)  
config file = /home/fran/hg/natserv-ansible/hfh/ansible.cfg  
configured module search path = /home/fran/ansible/library:/usr/share/ansible/

---

<div class="post-metadata">

**Author:** ![Francisco\_Reyes](https://avatars.discourse-cdn.com/v4/letter/f/b77776/32.png) [@Francisco\_Reyes](https://forum.ansible.com/u/Francisco_Reyes)\
**Post date:** [August 30, 2015, 3:18am UTC](https://forum.ansible.com/t/fatal-error-ambiguous-output-redirect/19143/3 "2015-08-30T03:18:10Z")

</div>

> ansible-playbook 2.0.0 (devel 6154ed1dda) last updated 2015/08/28 22:28:56 (GMT -400)

Tracked down the issue. it is an issue with this

> /dev/null 2\>&1

I rolled back to version stable-1.9 and the problem does not exist there.

Was also trying ansible\_shell\_type=csh (freeBSD machine with shell as csh) and did not help in version 2. It seems version 2 expects bash and does not seem to be working with neither sh or csh. I had one machine (freebsd) with sh and another with csh (also freebsd) and neither worked. Changed shell to bash in one of the machines that that worked.

I guess going to stick with 1.9 for now.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [August 30, 2015, 11:44pm UTC](https://forum.ansible.com/t/fatal-error-ambiguous-output-redirect/19143/4 "2015-08-30T23:44:27Z")

</div>

I believe this is fixed with 5a65dce6fb653e5cebae65b0d0dfd23b7a0bb576  
which is not in current devel, if you have time to test please  
confirm.
