From 1800af363cf541b4da736501bf0fd01c11799233 Mon Sep 17 00:00:00 2001 From: Bec White Date: Wed, 27 Nov 2019 18:35:32 -0600 Subject: [PATCH] Still add the ~/bin to the $PATH, since the drupal-check installation relies on this too. --- conf/vagrant/provisioning/roles/common/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/conf/vagrant/provisioning/roles/common/tasks/main.yml b/conf/vagrant/provisioning/roles/common/tasks/main.yml index 48d1078..5900a24 100644 --- a/conf/vagrant/provisioning/roles/common/tasks/main.yml +++ b/conf/vagrant/provisioning/roles/common/tasks/main.yml @@ -54,10 +54,18 @@ when: provision_user.stat.exists tags: common +- name: Add the ~/bin to the path + lineinfile: dest=/home/vagrant/.profile state=present line='export PATH="$PATH:$HOME/bin"' + tags: drush + - 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: Add the ~/bin to the zsh path + lineinfile: dest=/home/vagrant/.zshrc state=present create=yes line='export PATH="$PATH:$HOME/bin"' + tags: drush + - name: Add $HOME/bin and the project's vendor/bin to the zsh path lineinfile: dest=/home/vagrant/.zshrc state=present create=yes line='export PATH="$PATH:$REPO/vendor/bin:$HOME/bin:/var/www/{{ hostname }}/vendor/bin"' tags: common