# ValueError: need more than 1 value to unpack

**URL:** <https://forum.ansible.com/t/valueerror-need-more-than-1-value-to-unpack/18111>\
**Category:** Ansible Project\
**Created:** [April 28, 2015, 5:22pm UTC](https://forum.ansible.com/t/valueerror-need-more-than-1-value-to-unpack/18111 "2015-04-28T17:22:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andres\_Silva1](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@Andres\_Silva1](https://forum.ansible.com/u/Andres_Silva1)\
**Post date:** [April 28, 2015, 5:22pm UTC](https://forum.ansible.com/t/valueerror-need-more-than-1-value-to-unpack/18111/1 "2015-04-28T17:22:41Z")

</div>

With Ansible 1.9 I have the following plays (fails only with 1.9 with 1.8 it works fine)

- name: Set to Java version specified by role parameter  
set\_fact:  
ver: “{{ java\_version }}”  
when: ver is undefined

- alternatives: name=jar link=/usr/bin/jar path=/usr/java/jdk{{ ver }}/bin/jar

And I get this error

failed: [default] =\> {“failed”: true, “parsed”: false}  
BECOME-SUCCESS-yqvfbismgrplhjzyedwtepsqchisywud  
Traceback (most recent call last):  
File “/home/ec2-user/.ansible/tmp/ansible-tmp-1430241476.96-220752392480644/alternatives”, line 1756, in   
main()  
File “/home/ec2-user/.ansible/tmp/ansible-tmp-1430241476.96-220752392480644/alternatives”, line 126, in main  
line\_name, line\_mode, line\_path = line.strip().split(“\t”)  
ValueError: need more than 1 value to unpack  
OpenSSH\_6.2p2, OSSLShim 0.9.8r 8 Dec 2011  
debug1: Reading configuration data /Users/asilva/.ssh/config  
debug1: /Users/asilva/.ssh/config line 53: Applying options for 172.18.15.\*  
debug1: Reading configuration data /etc/ssh\_config  
debug1: /etc/ssh\_config line 20: Applying options for \*  
debug1: /etc/ssh\_config line 102: Applying options for \*  
debug1: auto-mux: Trying existing master  
debug1: mux\_client\_request\_session: master session id: 2  
Shared connection to 172.18.15.120 closed.

FATAL: all hosts have already failed – aborting

This works fine with 1.8. But breaks in 1.9 - Any ideas?

---

<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:** [April 28, 2015, 7:28pm UTC](https://forum.ansible.com/t/valueerror-need-more-than-1-value-to-unpack/18111/2 "2015-04-28T19:28:08Z")

</div>

what is the value of 'ver'? you might need to quote path="..."
