Can't get Trellis to work on Windows 10 + VirtualBox

Hi there!

I recently discovered Trellis / Bedrock and I find it very promising so I deciced to set it up on my local machine.

I followed the instructions on: https://roots.io/trellis/docs/installing-trellis/ (including the windows docs) but I can’t get it to work.

I can’t reach example.dev in my browser (although it is added autmatically to my hosts file and I’m able to ping it from cmd). I suspect it has something to with Ansible since I get this error when I run vagrant provision:

$ vagrant provision
==> default: [vagrant-hostsupdater] Checking for host entries
==> default: [vagrant-hostsupdater] Skipping adding host entries (config.vm.network hostsupdater: "skip" is set)
==> default: Running provisioner: shell...
    default: Running: D:/Users/arjan/AppData/Local/Temp/vagrant-shell20160707-5668-yzdo91.sh
==> default: Running Ansible Playbooks
==> default:
==> default: PLAY [WordPress Server: Install LEMP Stack with PHP 7.0 and MariaDB MySQL] *****
==> default:
==> default: TASK [setup] *******************************************************************
==> default: ok: [192.168.50.5]
==> default:
==> default: TASK [common : Validate Ansible version] ***************************************
==> default: System info:
==> default:   Ansible 2.1.0.0; Linux
==> default:   Trellis at "Add Vagrant post up message"
==> default: ---------------------------------------------------
==> default: Your Ansible version is 2.1.0.0.
==> default: Please install a version of Ansible that meets these requirements:
==> default:   >= 2.0.2.0
==> default:   != 2.1.0.0
==> default:
==> default: fatal: [192.168.50.5]: FAILED! => {"changed": false, "failed": true}
==> default:
==> default: NO MORE HOSTS LEFT *************************************************************
==> default:    to retry, use: --limit @dev.retry
==> default:
==> default: PLAY RECAP *********************************************************************
==> default: 192.168.50.5               : ok=1    changed=0    unreachable=0    failed=1
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Am I forgetting something? Hopefully somebody here can put me in the direction, can’t wait to get started with Trellis / Bedrock.

Cheers :slight_smile:

Did you read the error message output?

1 Like

I did, I know it says:

==> default: Your Ansible version is 2.1.0.0.
==> default: Please install a version of Ansible that meets these requirements:
==> default:   >= 2.0.2.0
==> default:   != 2.1.0.0

So I tried to remove ansible from the guest machine and install another version with the apt package manager. Unfortunately there is no other version available that meets the requirements:

vagrant@example:~$ apt-cache policy ansible
ansible:
  Installed: (none)
  Candidate: 2.1.0.0-1ppa~trusty
  Version table:
     2.1.0.0-1ppa~trusty 0
        500 http://ppa.launchpad.net/ansible/ansible/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
     1.7.2+dfsg-1~ubuntu14.04.1 0
        100 http://archive.ubuntu.com/ubuntu/ trusty-backports/universe amd64 Packages
     1.5.4+dfsg-1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

Any suggestions? :slight_smile:

Closing this thread as its a real bug that’s being tracked here: https://github.com/roots/trellis/pull/613