Fix resource ordering

Make sure the repo is installed before installing the package (so the package is not accidentally installed from the OS repo) and Varnish is installed before trying to create files in the `/etc/varnish` directory.