Is it necessary to make any changes in the configuration file? Can’t I run it out of the box? If yes, then what wrong i did to get 404 error.
On Windows environment ansible-playbook can not be run. I couldn’t find servers.yml file shared with Vagrant. How to perform that step from Windows. Same doubt for deploying as well.
If you’ve had errors along the way, it would be important to do a vagrant destroy and remove any entries for example.dev from your /etc/hosts, then do a fresh vagrant up.
If you’ve dealt with the project Requirements and Installation, then yes, I believe the defaults should be sufficient to bring up the example.dev site. Windows users can correct me.
# SSH in to the vagrant vm
vagrant ssh
# Change directories to the /vagrant shared folder
cd /vagrant
# See that the project files are there, shared
ls -al
# Run your ansible commands, e.g.,
ansible-playbook server.yml -i hosts/staging
In the case of staging/production, you’ll need to edit at least a few configs in wordpress_sites to correspond to your remote server. Also add your server’s IP to the hosts file, like the README says.
Good job diving in! I just remembered someone saying that vagrant ssh doesn’t work on all Windows. If that’s the case for you, see some of the links and ideas in this thread.