Skip to content

Instantly share code, notes, and snippets.

@palfrey
Created April 27, 2015 11:00
Show Gist options
  • Select an option

  • Save palfrey/8eb4440a548f322011a6 to your computer and use it in GitHub Desktop.

Select an option

Save palfrey/8eb4440a548f322011a6 to your computer and use it in GitHub Desktop.
Ansible failure
palfrey@mruppity:[~/src/docker.ubuntu] vagrant up ubuntu-1404 <=====
Bringing machine 'ubuntu-1404' up with 'virtualbox' provider...
==> ubuntu-1404: Importing base box 'ubuntu/trusty64'...
==> ubuntu-1404: Matching MAC address for NAT networking...
==> ubuntu-1404: Checking if box 'ubuntu/trusty64' is up to date...
==> ubuntu-1404: Setting the name of the VM: dockerubuntu_ubuntu-1404_1430132322706_97353
==> ubuntu-1404: Clearing any previously set forwarded ports...
==> ubuntu-1404: Fixed port collision for 22 => 2222. Now on port 2206.
==> ubuntu-1404: Clearing any previously set network interfaces...
==> ubuntu-1404: Preparing network interfaces based on configuration...
ubuntu-1404: Adapter 1: nat
ubuntu-1404: Adapter 2: hostonly
==> ubuntu-1404: Forwarding ports...
ubuntu-1404: 22 => 2206 (adapter 1)
==> ubuntu-1404: Running 'pre-boot' VM customizations...
==> ubuntu-1404: Booting VM...
==> ubuntu-1404: Waiting for machine to boot. This may take a few minutes...
ubuntu-1404: SSH address: 127.0.0.1:2206
ubuntu-1404: SSH username: vagrant
ubuntu-1404: SSH auth method: private key
ubuntu-1404: Warning: Connection timeout. Retrying...
ubuntu-1404: Warning: Remote connection disconnect. Retrying...
ubuntu-1404:
ubuntu-1404: Vagrant insecure key detected. Vagrant will automatically replace
ubuntu-1404: this with a newly generated keypair for better security.
ubuntu-1404:
ubuntu-1404: Inserting generated public key within guest...
ubuntu-1404: Removing insecure key from the guest if its present...
ubuntu-1404: Key inserted! Disconnecting and reconnecting using new SSH key...
==> ubuntu-1404: Machine booted and ready!
==> ubuntu-1404: Checking for guest additions in VM...
==> ubuntu-1404: Setting hostname...
==> ubuntu-1404: Configuring and enabling network interfaces...
==> ubuntu-1404: Mounting shared folders...
ubuntu-1404: /vagrant => /home/palfrey/src/docker.ubuntu
==> ubuntu-1404: Running provisioner: ansible...
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook --private-key=/home/palfrey/src/docker.ubuntu/.vagrant/machines/ubuntu-1404/virtualbox/private_key --user=vagrant --connection=ssh --limit='ubuntu-1404' --inventory-file=/home/palfrey/src/docker.ubuntu/.vagrant/provisioners/ansible/inventory -vv tests/vagrant.yml
PLAY [all] ********************************************************************
GATHERING FACTS ***************************************************************
<127.0.0.1> REMOTE_MODULE setup
ok: [ubuntu-1404]
TASK: [docker.ubuntu | Fail if not a new release of Ubuntu] *******************
fatal: [ubuntu-1404] => error while evaluating conditional: ansible_distribution_version | version_compare(12.04, '<') or ansible_distribution_version | version_compare(12.10, '=')
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/home/palfrey/vagrant.retry
ubuntu-1404 : ok=1 changed=0 unreachable=1 failed=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment