I have moved to using VirtualBox VM’s for my local web development. I use Vagrant and Ansible to set them up. For my site, I use synced folders to share the site files from the local machine to the dev VM. This limits what permissions can be set on the files though, and doesn’t work well for Symfony’s var
folder stuff, eg cache and logs. The normal Symfony permissions for those folders use ACL’s, but those cannot be set on Vagrant synced files. My solution was to create a /var/www/var
folder to store such folders for any sites on the VM, and symlink them into place in the shared folder location. I did this with Ansible so that it would be reproducible. Since I ran into some issues getting it working, I thought I’d blog about it.
ansible posts
New server setup at Cogneato
I’m kind of excited that we moved the first site onto a new server setup at Cogneato. I had worked off and on on the setup for months before we finally went forward with it. It brings a new OS, new host, new software, and a number of other changes to our previous setup.
Continue reading post "New server setup at Cogneato"Ansible: Share handlers between playbooks
A StackOverflow question showed me that Ansible handlers can be stored in their own YAML file and included into any playbook to avoid repetition.
Continue reading post "Ansible: Share handlers between playbooks"Ansible 2.4 not loading group_vars?
I recently updated to Ansible 2.4 from 2.3, and my group_vars
no longer seem to be loading automatically.