[meta] s/osx/macos/

pull/37/head
Alpha Chen 3 years ago
parent ffa984e22e
commit 85c5f80481

@ -16,7 +16,7 @@
- hosts: os_MacOSX - hosts: os_MacOSX
roles: roles:
- role: osx - role: macos
tasks: tasks:
- name: install fennel - name: install fennel
command: luarocks install fennel command: luarocks install fennel
@ -26,11 +26,3 @@
- dotfiles - dotfiles
- ruby - ruby
- zsh - zsh
- hosts: all
tasks:
- name: update git remote for dotfiles
command: git remote set-url origin git@github.com:kejadlen/dotfiles.git
args:
chdir: ~/.dotfiles

@ -8,20 +8,20 @@
- file: path=~/Library/KeyBindings state=directory - file: path=~/Library/KeyBindings state=directory
- name: Symlink Emacs-style keybindings for OS X - name: Symlink Emacs-style keybindings for OS X
file: file:
src: ~/.dotfiles/osx/DefaultKeyBinding.dict src: ~/.dotfiles/macos/DefaultKeyBinding.dict
dest: ~/Library/KeyBindings/DefaultKeyBinding.dict dest: ~/Library/KeyBindings/DefaultKeyBinding.dict
state: link state: link
- file: path=~/Library/Dictionaries state=directory
- name: Install Webster's 1913 dictionary - name: Install Webster's 1913 dictionary
block: block:
- copy: - copy:
src: ~/.dotfiles/osx/websters-1913.dictionary/ src: ~/.dotfiles/macos/websters-1913.dictionary/
dest: ~/Library/Dictionaries/websters-1913.dictionary dest: ~/Library/Dictionaries/websters-1913.dictionary
# This worked in earlier versions of MacOS, but not in Big Sur? # This worked in earlier versions of MacOS, but not in Big Sur?
# The plist now looks like this: # The plist now looks like this:
# #
#
# /usr/libexec/PlistBuddy -c "Print" ~/Library/Preferences/com.apple.DictionaryServices.plist # /usr/libexec/PlistBuddy -c "Print" ~/Library/Preferences/com.apple.DictionaryServices.plist
# Dict { # Dict {
# DCSActiveDictionaries = Array { # DCSActiveDictionaries = Array {

@ -23,5 +23,5 @@
file: src=~/.dotfiles/bin dest=~/bin state=link file: src=~/.dotfiles/bin dest=~/bin state=link
- name: symlink ~/.tmux.conf.local - name: symlink ~/.tmux.conf.local
file: src=~/.dotfiles/osx/.tmux.conf.local dest=~/.tmux.conf.local state=link file: src=~/.dotfiles/macos/.tmux.conf.local dest=~/.tmux.conf.local state=link
when: ansible_distribution == "MacOSX" when: ansible_distribution == "MacOSX"

@ -1,13 +1,13 @@
- name: install dockutil - name: install dockutil
homebrew: name=dockutil state=present homebrew: name=dockutil state=present
- command: /usr/local/bin/dockutil --list - command: dockutil --list
register: dockutil_result register: dockutil_result
- name: remove all Dock icons - name: remove all Dock icons
command: /usr/local/bin/dockutil --remove all command: dockutil --remove all
when: not (dockutil_result.stdout_lines | length == 1 and dockutil_result.stdout is search("^Downloads")) when: not (dockutil_result.stdout_lines | length == 1 and dockutil_result.stdout is search("^Downloads"))
- name: add ~/Downloads to the Dock - name: add ~/Downloads to the Dock
command: /usr/local/bin/dockutil --add ~/Downloads command: dockutil --add ~/Downloads
--view list --view list
--display stack --display stack
--sort datemodified --sort datemodified

@ -4,14 +4,14 @@
- file: path=~/Library/KeyBindings state=directory - file: path=~/Library/KeyBindings state=directory
- name: Symlink Emacs-style keybindings for OS X - name: Symlink Emacs-style keybindings for OS X
file: file:
src: ~/.dotfiles/osx/DefaultKeyBinding.dict src: ~/.dotfiles/macos/DefaultKeyBinding.dict
dest: ~/Library/KeyBindings/DefaultKeyBinding.dict dest: ~/Library/KeyBindings/DefaultKeyBinding.dict
state: link state: link
- file: path=~/Library/Colors state=directory - file: path=~/Library/Colors state=directory
- name: symlink OS X colors palettes - name: symlink OS X colors palettes
file: src={{ item }} dest=~/Library/Colors/{{ item | basename }} state=link file: src={{ item }} dest=~/Library/Colors/{{ item | basename }} state=link
with_fileglob: ~/.dotfiles/osx/Colors/* with_fileglob: ~/.dotfiles/macos/Colors/*
- name: disable gamed - name: disable gamed
command: launchctl unload -w /System/Library/LaunchAgents/com.apple.gamed.plist command: launchctl unload -w /System/Library/LaunchAgents/com.apple.gamed.plist
Loading…
Cancel
Save