Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the rvm installation issue on macos user #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions inventory
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[targets]
localhost ansible_connection=local
7 changes: 2 additions & 5 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
- hosts: all
vars_files:
- vars/main.yml

roles:
- alan2112000.homebrew
- alan2112000.dotfiles
- resumegenius.yml
- role: rvm_io.ruby
tags: ruby
become: yes
rvm1_rubies: ['ruby-2.2.2', 'ruby-2.3.3']
rvm1_user: vagrant # Need root account to access system location


rvm1_user: "{{ ansible_user_id }}"
6 changes: 6 additions & 0 deletions roles/alan2112000.homebrew/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,9 @@
- include: oh_my_zsh.yml
name: inlcude oh my zsh

- name: 'Test State'
stat:
path: '/Users/ceshi'
register: ceshi_state


9 changes: 4 additions & 5 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# change your user id here
ansible_user_id: vagrant
ansible_become_pass: ''
ansible_user_id: ceshi
ansible_become_pass: 'asdfasdfasdf'
homebrew_installed_packages:
- ansible
- wget
Expand Down Expand Up @@ -50,7 +50,6 @@
- dash
- bettertouchtool
- alfred
- iterm2

rvm1_gpg_keys: ''
root_group: admin
root_user: '{{ ansible_user_id }}'
rvm1_temp_download_path: '/Users/{ ansible_user_id }/.tmp'