if I install the exact versions of the prerequistites on mac os, (10.11.6) and just follow the directions in the Installing Trellis and WordPress Sites, I do NOT get a running WP, it fails on the SSH when running the ansible-playbook. I did this all day using my modified site (my domain etc) and then decided to try using the example.com verion in the repos…
well, here’s what happened…
`Frodo:Projects me$ mkdir example.com
Frodo:Projects me$ cd !$
cd example.com
Frodo:example.com me$ ansible --version
ansible 2.0.2.0
config file =
configured module search path = Default w/o overrides
Frodo:example.com me$ vagrant --version
Vagrant 1.8.5
Frodo:example.com me$ vagrant-bindfs --version
-bash: vagrant-bindfs: command not found
Frodo:example.com me$ git clone --depth=1 git@github.com:roots/trellis.git && rm -rf trellis/.git
Cloning into ‘trellis’…
remote: Counting objects: 218, done.
remote: Compressing objects: 100% (172/172), done.
remote: Total 218 (delta 5), reused 139 (delta 1), pack-reused 0
Receiving objects: 100% (218/218), 68.84 KiB | 0 bytes/s, done.
Resolving deltas: 100% (5/5), done.
Checking connectivity… done.
Frodo:example.com me$ git clone --depth=1 git@github.com:roots/bedrock.git site && rm -rf site/.git
Cloning into ‘site’…
remote: Counting objects: 33, done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 33 (delta 1), reused 19 (delta 1), pack-reused 0
Receiving objects: 100% (33/33), 14.00 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Checking connectivity… done.
Frodo:example.com me$ cd trellis && ansible-galaxy install -r requirements.yml
- downloading role ‘composer’, owned by geerlingguy
- downloading role from https://github.com/geerlingguy/ansible-role-composer/archive/1.2.7.tar.gz
- extracting composer to vendor/roles/composer
- composer was installed successfully
- downloading role ‘ntp’, owned by resmo
- downloading role from https://github.com/resmo/ansible-role-ntp/archive/0.3.0.tar.gz
- extracting ntp to vendor/roles/ntp
- ntp was installed successfully
- downloading role ‘logrotate’, owned by nickhammond
- downloading role from https://github.com/nickhammond/ansible-logrotate/archive/fc3ea4.tar.gz
- extracting logrotate to vendor/roles/logrotate
- logrotate was installed successfully
- downloading role ‘swapfile’, owned by kamaln7
- downloading role from https://github.com/kamaln7/ansible-swapfile/archive/0.4.tar.gz
- extracting swapfile to vendor/roles/swapfile
- swapfile was installed successfully
- downloading role ‘daemonize’, owned by geerlingguy
- downloading role from {New Users can only PUT 4 LINKS in a POST. Sigh.}
- extracting geerlingguy.daemonize to vendor/roles/geerlingguy.daemonize
- geerlingguy.daemonize was installed successfully
- downloading role ‘mailhog’, owned by geerlingguy
- downloading role from {New Users can only PUT 4 LINKS in a POST. Sigh.}
- extracting mailhog to vendor/roles/mailhog
- mailhog was installed successfully
[DEPRECATION WARNING]: The comma separated role spec format, use the yaml/explicit format
instead…
This feature will be removed in a future release. Deprecation warnings can be disabled
by setting deprecation_warnings=False in ansible.cfg. - dependency geerlingguy.daemonize is already installed, skipping.
Frodo:trellis me$ vagrant up
Bringing machine ‘default’ up with ‘virtualbox’ provider…
==> default: Importing base box ‘bento/ubuntu-16.04’…
==> default: Matching MAC address for NAT networking…
==> default: Checking if box ‘bento/ubuntu-16.04’ is up to date…
==> default: Setting the name of the VM: example.dev
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces…
==> default: Preparing network interfaces based on configuration…
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports…
default: 22 (guest) => 2200 (host) (adapter 1)
==> default: Running ‘pre-boot’ VM customizations…
==> default: Booting VM…
==> default: Waiting for machine to boot. This may take a few minutes…
default: SSH address: 127.0.0.1:2200
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Remote connection disconnect. Retrying…
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest…
default: Removing insecure key from the guest if it’s present…
default: Key inserted! Disconnecting and reconnecting using new SSH key…
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM…
==> default: Setting hostname…
==> default: Configuring and enabling network interfaces…
==> default: Exporting NFS shared folders…
==> default: Preparing to edit /etc/exports. Administrator privileges will be required…
Password:
==> default: Mounting NFS shared folders…
==> default: Mounting shared folders…
default: /vagrant => /Volumes/BigDisk/ExternalUsers/me/Projects/example.com/trellis
==> default: Bindfs seems to not be installed on the virtual machine, installing now
==> default: Creating bind mounts for selected devices
==> default: Creating bind mount from /vagrant-nfs-example.com to /srv/www/example.com/current
==> default: Updating /etc/hosts file on active guest machines…
==> default: Updating /etc/hosts file on host machine (password may be required)…
==> default: Running provisioner: ansible…
default: Running ansible-playbook…
PLAY [WordPress Server: Install LEMP Stack with PHP 7.0 and MariaDB MySQL] *****
TASK [setup] *******************************************************************
System info:
Ansible 2.0.2.0; Vagrant 1.8.5; Darwin
Trellis at “Fix #639 - WP 4.6 compatibility: update WP-CLI to 0.24.1”
Failed to connect to the host via ssh.
fatal: [default]: UNREACHABLE! => {“changed”: false, “unreachable”: true}
to retry, use: --limit @/Volumes/BigDisk/ExternalUsers/me/Projects/example.com/trellis/dev.retry
PLAY RECAP *********************************************************************
default : ok=0 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.
Frodo:trellis me$
`
any ideas?