Skip to content

Instantly share code, notes, and snippets.

@redshiftzero
Created July 13, 2018 21:37
Show Gist options
  • Save redshiftzero/bbfcf5c16508ffb332c1a4e043f14685 to your computer and use it in GitHub Desktop.
Save redshiftzero/bbfcf5c16508ffb332c1a4e043f14685 to your computer and use it in GitHub Desktop.
for a vagrant issue
$ vagrant -v
Vagrant 2.1.2
$ vagrant up app-staging
Bringing machine 'app-staging' up with 'virtualbox' provider...
==> app-staging: Importing base box 'bento/ubuntu-14.04'...
==> app-staging: Matching MAC address for NAT networking...
==> app-staging: Checking if box 'bento/ubuntu-14.04' is up to date...
==> app-staging: A newer version of the box 'bento/ubuntu-14.04' for provider 'virtualbox' is
==> app-staging: available! You currently have version '201803.24.0'. The latest is version
==> app-staging: '201806.08.0'. Run `vagrant box update` to update.
==> app-staging: Setting the name of the VM: securedrop_app-staging_1531517735523_8422
==> app-staging: Fixed port collision for 22 => 2222. Now on port 2201.
==> app-staging: Clearing any previously set network interfaces...
==> app-staging: Preparing network interfaces based on configuration...
app-staging: Adapter 1: nat
app-staging: Adapter 2: hostonly
==> app-staging: Forwarding ports...
app-staging: 22 (guest) => 2201 (host) (adapter 1)
==> app-staging: Running 'pre-boot' VM customizations...
==> app-staging: Booting VM...
==> app-staging: Waiting for machine to boot. This may take a few minutes...
app-staging: SSH address: 127.0.0.1:2201
app-staging: SSH username: vagrant
app-staging: SSH auth method: private key
==> app-staging: Machine booted and ready!
==> app-staging: Checking for guest additions in VM...
==> app-staging: Setting hostname...
==> app-staging: Configuring and enabling network interfaces...
==> app-staging: Running provisioner: ansible...
Vagrant gathered an unknown Ansible version:
and falls back on the compatibility mode '1.8'.
Alternatively, the compatibility mode can be specified in your Vagrantfile:
https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode
app-staging: Running ansible-playbook...
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o IdentityFile=/Users/redshiftzero/.vagrant.d/insecure_private_key -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook --connection=ssh --timeout=30 --extra-vars=ansible_ssh_user\=\'vagrant\' --limit="all,localhost" --inventory-file=install_files/ansible-base/inventory-staging -v install_files/ansible-base/securedrop-staging.yml
The Ansible software could not be found! Please verify
that Ansible is correctly installed on your host system.
If you haven't installed Ansible yet, please install Ansible
on your host system. Vagrant can't do this for you in a safe and
automated way.
Please check https://docs.ansible.com for more information.
$ vagrant destroy -f
==> app-prod: VM not created. Moving on...
==> mon-prod: VM not created. Moving on...
==> app-staging: Forcing shutdown of VM...
==> app-staging: Destroying VM and associated drives...
==> mon-staging: VM not created. Moving on...
$ echo $?
2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment