Hello, i'm trying to use your role script to configure a vagrant virtual machine.
---
- hosts: all
user: vagrant
sudo: yes
roles:
- DavidWittman.redis
- database
Bringing machine 'payroll' up with 'virtualbox' provider...
[payroll] Importing base box 'precise32'...
[payroll] Matching MAC address for NAT networking...
[payroll] Setting the name of the VM...
[payroll] Clearing any previously set forwarded ports...
[payroll] Clearing any previously set network interfaces...
[payroll] Preparing network interfaces based on configuration...
[payroll] Forwarding ports...
[payroll] -- 22 => 2222 (adapter 1)
[payroll] Booting VM...
[payroll] Waiting for machine to boot. This may take a few minutes...
[payroll] Machine booted and ready!
[payroll] The guest additions on this VM do not match the installed version of
VirtualBox! In most cases this is fine, but in rare cases it can
prevent things such as shared folders from working properly. If you see
shared folder errors, please make sure the guest additions within the
virtual machine match the version of VirtualBox you have installed on
your host and reload your VM.
Guest Additions Version: 4.2.0
VirtualBox Version: 4.3
[payroll] Configuring and enabling network interfaces...
[payroll] Mounting shared folders...
[payroll] -- /vagrant
[payroll] Running provisioner: ansible...
PLAY [all] ********************************************************************
GATHERING FACTS ***************************************************************
ok: [payroll]
TASK: [DavidWittman.redis | install dependencies] *****************************
changed: [payroll] => (item=gcc,make,libc6-dev)
TASK: [DavidWittman.redis | install dependencies] *****************************
skipping: [payroll]
TASK: [DavidWittman.redis | enable overcommit in sysctl] **********************
changed: [payroll]
TASK: [DavidWittman.redis | add redis user] ***********************************
changed: [payroll]
TASK: [DavidWittman.redis | download redis] ***********************************
changed: [payroll]
TASK: [DavidWittman.redis | upload redis] *************************************
skipping: [payroll]
TASK: [DavidWittman.redis | extract redis tarball] ****************************
changed: [payroll]
TASK: [DavidWittman.redis | compile redis] ************************************
changed: [payroll]
TASK: [DavidWittman.redis | create redis install directory] *******************
ok: [payroll]
TASK: [DavidWittman.redis | create /etc/redis] ********************************
changed: [payroll]
TASK: [DavidWittman.redis | create /var/run/redis] ****************************
changed: [payroll]
TASK: [DavidWittman.redis | install redis] ************************************
changed: [payroll]
TASK: [DavidWittman.redis | list redis binaries] ******************************
ok: [payroll]
TASK: [DavidWittman.redis | add redis binaries to alternatives] ***************
failed: [payroll] => (item=redis-benchmark) => {"failed": true, "item": "redis-benchmark", "parsed": false}
SUDO-SUCCESS-ukekmrntwbssexuzjesgrgrsnvxovkqg
Traceback (most recent call last):
File "/home/vagrant/.ansible/tmp/ansible-tmp-1424885715.08-274944950675321/alternatives", line 1723, in <module>
main()
File "/home/vagrant/.ansible/tmp/ansible-tmp-1424885715.08-274944950675321/alternatives", line 126, in main
line_name, line_mode, line_path = line.strip().split("\t")
ValueError: need more than 1 value to unpack
failed: [payroll] => (item=redis-check-aof) => {"failed": true, "item": "redis-check-aof", "parsed": false}
SUDO-SUCCESS-herdhrmjwuehyatkopuplogtywaosaph
Traceback (most recent call last):
File "/home/vagrant/.ansible/tmp/ansible-tmp-1424885715.27-64895011136970/alternatives", line 1723, in <module>
main()
File "/home/vagrant/.ansible/tmp/ansible-tmp-1424885715.27-64895011136970/alternatives", line 126, in main
line_name, line_mode, line_path = line.strip().split("\t")
ValueError: need more than 1 value to unpack
failed: [payroll] => (item=redis-check-dump) => {"failed": true, "item": "redis-check-dump", "parsed": false}
SUDO-SUCCESS-fyqfxpjfoeilddbqlthcosdoejjphyhf
Traceback (most recent call last):
File "/home/vagrant/.ansible/tmp/ansible-tmp-1424885715.45-51532570914849/alternatives", line 1723, in <module>
main()
File "/home/vagrant/.ansible/tmp/ansible-tmp-1424885715.45-51532570914849/alternatives", line 126, in main
line_name, line_mode, line_path = line.strip().split("\t")
ValueError: need more than 1 value to unpack
failed: [payroll] => (item=redis-cli) => {"failed": true, "item": "redis-cli", "parsed": false}
SUDO-SUCCESS-htrsqivxvwgfilfataujadaqqxdrhieq
Traceback (most recent call last):
File "/home/vagrant/.ansible/tmp/ansible-tmp-1424885715.61-128316913027241/alternatives", line 1723, in <module>
main()
File "/home/vagrant/.ansible/tmp/ansible-tmp-1424885715.61-128316913027241/alternatives", line 126, in main
line_name, line_mode, line_path = line.strip().split("\t")
ValueError: need more than 1 value to unpack
failed: [payroll] => (item=redis-server) => {"failed": true, "item": "redis-server", "parsed": false}
SUDO-SUCCESS-uvahlwknzeuzpxrpwchvuooglmchmefi
Traceback (most recent call last):
File "/home/vagrant/.ansible/tmp/ansible-tmp-1424885715.79-139109903766318/alternatives", line 1723, in <module>
main()
File "/home/vagrant/.ansible/tmp/ansible-tmp-1424885715.79-139109903766318/alternatives", line 126, in main
line_name, line_mode, line_path = line.strip().split("\t")
ValueError: need more than 1 value to unpack
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/home/menegazzo/playbook.retry
payroll : ok=12 changed=9 unreachable=0 failed=1
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
Seems to be an issue with ansible, but i have no idea where to start.
Any tips will be welcome.