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

wip #3

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
11 changes: 3 additions & 8 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

- hosts: os_MacOSX
roles:
- geerlingguy.homebrew
- geerlingguy.mac.homebrew

- hosts: localhost
vars:
Expand All @@ -16,17 +16,12 @@
roles:
- base
- zsh
- iterm2
- tmux
- nvim
- vscode
- fzf
- docker
- virtualbox
- java
- intellij_ce
- javascript
- python
- aws
- kubernetes
- dbeaver
- spotify
- redis
5 changes: 3 additions & 2 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
- src: geerlingguy.homebrew
version: 3.1.0
collections:
- name: geerlingguy.mac
version: 2.1.1
1 change: 0 additions & 1 deletion roles/javascript/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/{{ uri_res.json[0].name }}/install.sh | bash
args:
creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"
warn: false

- name: install latest version of node
shell: 'export NVM_DIR="{{ ansible_env.HOME }}/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && nvm install node'
Expand Down
6 changes: 2 additions & 4 deletions roles/zsh/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
- name: install zsh (macos)
homebrew: name=zsh state=present update_homebrew=yes
when: ansible_distribution == "MacOSX"
# just going to assume any new mac is Ventura or greater, which has zsh as the default shell

- name: install zsh
apt: name=zsh update_cache=yes
Expand All @@ -13,6 +11,7 @@
name: "{{ ansible_env.USER }}"
shell: /bin/zsh
become: yes
when: ansible_distribution == "Ubuntu"

- name: install oh-my-zsh
git:
Expand All @@ -28,5 +27,4 @@
src: files/zshrc
dest: "{{ ansible_env.HOME }}/.zshrc"
owner: "{{ ansible_env.USER }}"
group: "{{ ansible_env.USER }}"
mode: 0644