From 7598dff6a2c7f47d3af6bd515d6370a9d97f8006 Mon Sep 17 00:00:00 2001 From: Avi Schwab Date: Tue, 13 Dec 2016 10:52:01 -0600 Subject: [PATCH 1/2] Add the project's vendor/bin to the path --- conf/vagrant/provisioning/roles/common/tasks/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/conf/vagrant/provisioning/roles/common/tasks/main.yml b/conf/vagrant/provisioning/roles/common/tasks/main.yml index 8bd7371..7ed7faa 100644 --- a/conf/vagrant/provisioning/roles/common/tasks/main.yml +++ b/conf/vagrant/provisioning/roles/common/tasks/main.yml @@ -31,6 +31,10 @@ when: provision_user.stat.exists tags: common -- name: Set path to include $HOME/bin for zsh too - lineinfile: dest=/home/vagrant/.zshrc state=present line='export PATH="$PATH:$REPO/vendor/bin:$HOME/bin"' +- name: Set path to include $HOME/bin and project vendor/bin for zsh too + lineinfile: dest=/home/vagrant/.zshrc state=present line='export PATH="$PATH:$REPO/vendor/bin:$HOME/bin:/var/www/{{ hostname }}/vendor/bin"' + tags: common + +- name: Set path to include project vendor/bin + lineinfile: dest=/home/vagrant/.profile state=present line='export PATH="$PATH:/var/www/{{ hostname }}/vendor/bin"' tags: common From 0ed93cb71274ded7ca131629c6fd671b8a3baabb Mon Sep 17 00:00:00 2001 From: Bec White Date: Fri, 13 Jan 2017 09:54:10 -0600 Subject: [PATCH 2/2] Update task names and order. --- conf/vagrant/provisioning/roles/common/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/vagrant/provisioning/roles/common/tasks/main.yml b/conf/vagrant/provisioning/roles/common/tasks/main.yml index 7ed7faa..b32e23f 100644 --- a/conf/vagrant/provisioning/roles/common/tasks/main.yml +++ b/conf/vagrant/provisioning/roles/common/tasks/main.yml @@ -31,10 +31,10 @@ when: provision_user.stat.exists tags: common -- name: Set path to include $HOME/bin and project vendor/bin for zsh too - lineinfile: dest=/home/vagrant/.zshrc state=present line='export PATH="$PATH:$REPO/vendor/bin:$HOME/bin:/var/www/{{ hostname }}/vendor/bin"' +- name: Add the project's vendor/bin to the path + lineinfile: dest=/home/vagrant/.profile state=present line='export PATH="$PATH:/var/www/{{ hostname }}/vendor/bin"' tags: common -- name: Set path to include project vendor/bin - lineinfile: dest=/home/vagrant/.profile state=present line='export PATH="$PATH:/var/www/{{ hostname }}/vendor/bin"' +- name: Add $HOME/bin and the project's vendor/bin to the zsh path + lineinfile: dest=/home/vagrant/.zshrc state=present line='export PATH="$PATH:$REPO/vendor/bin:$HOME/bin:/var/www/{{ hostname }}/vendor/bin"' tags: common