Skip to content

Commit

Permalink
Fixes for macOS sierra
Browse files Browse the repository at this point in the history
  • Loading branch information
ricbra committed Dec 10, 2016
1 parent 6e0119c commit 9cab563
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 17 deletions.
1 change: 1 addition & 0 deletions main.retry
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
127.0.0.1
13 changes: 8 additions & 5 deletions roles/dotfiles/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: Clone dotfiles
git: repo=https://github.com/ricbra/dotfiles.git dest=/Users/richard/dotfiles recursive=yes
git: repo=https://github.com/ricbra/dotfiles.git dest=/Users/richard/dotfiles recursive=yes update=no

- name: Get current Terminal profile.
shell: defaults read com.apple.Terminal 'Default Window Settings'
Expand Down Expand Up @@ -38,15 +38,15 @@
- name: Remove all crap from Dock
shell: dockutil --remove '{{ item }}'
ignore_errors: true
with_items: dockitems_to_remove
with_items: "{{ dockitems_to_remove }}"

- name: Check if items in dock exist
shell: dockutil --find '{{ item.name }}' || dockutil --add '{{ item.path }}'
with_items: dockitems_to_persist
with_items: "{{ dockitems_to_persist }}"

- name: Fix order
shell: dockutil --move '{{ item.name }}' --position {{ item.pos }}
with_items: dockitems_to_persist
with_items: "{{ dockitems_to_persist }}"

- name: Check if symfony is installed
stat: path=/usr/local/bin/symfony
Expand All @@ -60,5 +60,8 @@
file: path=/usr/local/bin/symfony mode=0755

- name: Set datetime zone
lineinfile: dest=/usr/local/etc/php/5.6/php.ini line="date.timezone=Europe/Amsterdam"
lineinfile: dest=/usr/local/etc/php/7.0/php.ini line="date.timezone=Europe/Amsterdam"

- name: Install npm packages
npm: name={{ item }} global=yes
with_items: "{{ npm_packages }}"
28 changes: 16 additions & 12 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
---
configure_sudoers: yes
homebrew_install_path: /usr/local/homebrew
homebrew_installed_packages:
- ansible
- docker
- git
- ssh-copy-id
- openssl
- wget
- brew-cask
- dockutil
- zsh
- tmux
Expand All @@ -17,9 +14,15 @@ homebrew_installed_packages:
- php-code-sniffer
- php-cs-fixer
- phpunit
- php56
- php56-intl
- php56-xdebug
- php70
- php70-intl
- php70-imagick
- php70-mcrypt
- tree
- npm
- yarn
- docker-compose
- docker-machine-nfs

homebrew_taps:
- caskroom/cask
Expand All @@ -29,20 +32,16 @@ homebrew_taps:
homebrew_cask_appdir: /Applications
homebrew_cask_apps:
- google-chrome
- dropbox
- firefox
- limechat
- vagrant
- virtualbox
- phpstorm8
- caskroom/homebrew-versions/java6
- phpstorm
- slack
- istat-menus
- atom
- android-file-transfer
- limechat
- spotify
- dockertoolbox
- hipchat

dockitems_to_remove:
- Launchpad
Expand All @@ -60,6 +59,7 @@ dockitems_to_remove:
- App Store
- System Preferences
- Calendar
- Siri

dockitems_to_persist:
- name: Google Chrome
Expand All @@ -83,3 +83,7 @@ dockitems_to_persist:
- name: Spotify
path: /Applications/Spotify.app
pos: 7

npm_packages:
- grunt
- bower

0 comments on commit 9cab563

Please sign in to comment.