Set up Ruby gems in home directory

This commit is contained in:
Anthony Rose 2019-11-22 15:46:55 +00:00
parent 36b912d5e1
commit c99f94e68f
3 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1 @@
gem: --user-install

View file

@ -144,6 +144,7 @@ for dir in $HOME/.local/bin \
/var/lib/snapd/snap/bin \ /var/lib/snapd/snap/bin \
$GOPATH/bin \ $GOPATH/bin \
$HOME/.cargo/bin \ $HOME/.cargo/bin \
$HOME/.gem/ruby/*/bin \
; do ; do
if [ -d "$dir" ]; then if [ -d "$dir" ]; then
PATH="$PATH:$dir" PATH="$PATH:$dir"

View file

@ -1,4 +1,8 @@
--- ---
- name: Copy .gemrc
copy:
src: gemrc
dest: "{{ ansible_env.HOME }}/.gemrc"
- name: Copy .gitconfig - name: Copy .gitconfig
copy: copy:
src: gitconfig src: gitconfig