Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #72 from palantirnet/remove-user-provisioning
Browse files Browse the repository at this point in the history
Remove user-specific provisioning and zsh configuration
  • Loading branch information
becw authored Feb 13, 2020
2 parents 10a1242 + 391280c commit 53225cb
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions conf/vagrant/provisioning/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,38 +45,21 @@
command: /usr/bin/git config --global core.excludesfile ~/.gitignore
tags: common

- name: Check for user-specific provisioning script
stat: path=/var/www/{{ hostname }}/conf/provision-user
register: provision_user

- name: Run user-specific provisioning.
command: /var/www/{{ hostname }}/conf/provision-user
when: provision_user.stat.exists
tags: common

- name: Ensure ~/bin exists
- name: Common | Ensure ~/bin exists
file:
path: /home/vagrant/bin
state: directory
owner: vagrant
mode: '755'

- name: Add the ~/bin to the path
- name: Common | 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"'
- name: Common | 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: Change directory into the project root on login
- name: Common | Change directory into the project root on login
lineinfile: dest=/home/vagrant/.profile state=present line='cd /var/www/{{ hostname }}'
tags: common

0 comments on commit 53225cb

Please sign in to comment.