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

Adds profile role #7

Merged
merged 1 commit into from
Jun 27, 2018
Merged
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
1 change: 1 addition & 0 deletions local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
roles:
- {role: os, tags: os}
- {role: bash, tags: bash}
- {role: profile, tags: profile}
- {role: brew, tags: brew}
- {role: nvm, tags: nvm}
- {role: rbenv, tags: rbenv}
Expand Down
1 change: 1 addition & 0 deletions roles/profile/files/.bash_aliases
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alias ll='ls -alF'
5 changes: 5 additions & 0 deletions roles/profile/files/.bash_profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] > "

source ~/.bash_aliases
14 changes: 14 additions & 0 deletions roles/profile/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
- name: Copy bash aliases file contents
copy:
backup: yes
force: yes
src: .bash_aliases
dest: ~/.bash_aliases

- name: Copy bash profile file contents
copy:
backup: yes
force: yes
src: .bash_profile
dest: "{{ bash_profile_file }}"