Skip to content

Instantly share code, notes, and snippets.

@cmosguy
Last active April 12, 2016 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmosguy/230b00f78d2a2848cc972e688f6ae371 to your computer and use it in GitHub Desktop.
Save cmosguy/230b00f78d2a2848cc972e688f6ae371 to your computer and use it in GitHub Desktop.
- name: Run npm install - for sage
command: npm install
connection: local
args:
chdir: "/vagrant-nfs-workspace/{{ project.local_path }}/web/app/themes/sage"
with_dict: "{{ wordpress_sites }}"
when: item.value.sage_template | default(false)
- name: Run bower install -for sage
command: bower install
connection: local
args:
chdir: "/vagrant-nfs-workspace/{{ project.local_path }}/web/app/themes/sage"
with_dict: "{{ wordpress_sites }}"
when: item.value.sage_template | default(false)
- name: Run gulp - for sage
command: gulp --production
connection: local
args:
chdir: "/vagrant-nfs-workspace/{{ project.local_path }}/web/app/themes/sage"
with_dict: "{{ wordpress_sites }}"
when: item.value.sage_template | default(false)
- name: Copy project local files
synchronize:
src: "/vagrant-nfs-workspace/{{ project.local_path }}/web/app/themes/sage/dist"
dest: "{{ deploy_helper.new_release_path }}/web/app/themes/sage"
group: no
owner: no
rsync_opts: --chmod=Du=rwx,--chmod=Dg=rx,--chmod=Do=rx,--chmod=Fu=rw,--chmod=Fg=r,--chmod=Fo=r
with_dict: "{{ wordpress_sites }}"
when: item.value.sage_template | default(false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment