I keep running into the same issue and cannot figure out how to get past this.
Dev machine is running ubuntu 16.04 LTS
Ansible version 2.2.1.0 (installed via pip)
VirtualBox version 5.1.18
Vagrant version 1.9.2
I am able to install the required programs successfully.
I am able to create the directory structure and clone trellis and bedrock as well as successfully run the ansible-galaxy install.
I configure wordpress_sites.yml and vault.yml in /group_vars/development/
to match site keys, set site host, and admin_email.
When I run vagrant up
from the trellis directory, it goes all the way through the installation/setup process and then at the very end it says:
TASK [setup] *********************************************************************************
System info:
Ansible 2.2.1.0; Vagrant 1.9.2; Linux
Trellis at "Allow customization of PHP extensions"
--------------------------------------------------------------
Cannot write to ControlPath /home/<user>/.ansible/cp
fatal: [default]: FAILED! => {"failed": true}
to retry, use: --limit @/home/<user>/Code/<site>/trellis/dev.retry
PLAY RECAP *********************************************************************
default : ok=0 change=0 unreachable=0 failed=1
Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again.
There are no other errors listed. This boots the VM and it is running yet the site is unreachable. I am able to ssh into the box but it does not look like there are any web servers running.
I have removed and purged Ansible, VirtualBox, and Vagrant multiple times to make sure it was not an issue with them. I feel like it has to be an issue with permissions or a dependency. Any assistance is greatly appreciated.
I am going to add the install process that I go through to make sure it is correct.
Ansible
sudo easy_install pip
sudo pip install ansible
VirtualBox
add deb http://download.virtualbox.org/virtualbox/debian xenial contrib
to /etc/apt/sources.list
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -0- | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox-5.1
Vagrant
Download vagrant deb file
sudo dpkg -i vagrant_1.9.2_x86_64.deb
vagrant-bindfs
vagrant plugin install vagrant-bindfs
vagrant-hostmanager
vagrant plugin install vagrant-hostmanager
All of these installations complete without any errors.