diff --git a/ansible/main.yml b/ansible/main.yml index c79703b..280fc6d 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -11,8 +11,7 @@ dest: ~/.dotfiles ignore_errors: yes -- hosts: os_MacOSX - import_playbook: playbooks/homebrew.yml +- import_playbook: playbooks/homebrew.yml - hosts: os_MacOSX roles: diff --git a/ansible/playbooks/homebrew.yml b/ansible/playbooks/homebrew.yml index 87513f8..552a2a0 100644 --- a/ansible/playbooks/homebrew.yml +++ b/ansible/playbooks/homebrew.yml @@ -1,5 +1,6 @@ - hosts: all tasks: + - name: update homebrew: update_homebrew=yes diff --git a/ansible/roles/osx/tasks/main.yml b/ansible/roles/osx/tasks/main.yml index 917ed0e..001b8ce 100644 --- a/ansible/roles/osx/tasks/main.yml +++ b/ansible/roles/osx/tasks/main.yml @@ -22,5 +22,11 @@ file: src={{ item }} dest=~/Library/Colors/{{ item | basename }} state=link with_fileglob: ~/.dotfiles/osx/Colors/* +- name: symlink iCloud + file: + src: "{{ ansible_env.HOME }}/Library/Mobile Documents/com~apple~CloudDocs" + dest: ~/iCloud + state: link + - name: disable gamed command: launchctl unload -w /System/Library/LaunchAgents/com.apple.gamed.plist diff --git a/ansible/roles/ruby/tasks/main.yml b/ansible/roles/ruby/tasks/main.yml index d280d50..90557e0 100644 --- a/ansible/roles/ruby/tasks/main.yml +++ b/ansible/roles/ruby/tasks/main.yml @@ -1,7 +1,8 @@ - name: install chruby homebrew: - state=present - name: + name: "{{ item }}" + state: present + with_items: - chruby - ruby-install