Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 646 Bytes
# Instead of cloning the Git repo and building like the "deploy" playbook, this
# playbook links your local working project directory into the Vagrant box so
# that you can instantly preview your local changes on the server, for
# convenience while developing. While in this mode, all building will have to
# be done manually, at the command line of your development machine. Running
# this playbook will override the deploy playbook, and vice-versa.
- hosts: vagrant
become: yes
become_method: sudo
tasks:
- name: link vagrant synced directory to make it live
file: path={{site_path}} state=link src={{synced_folder}} force=yes