[meta] symlink iCloud Drive
change
commit 59880d4b54a5511a158c3901a4530304a7025e00
author Alpha Chen <alpha@kejadlen.dev>
date
parent 0b4009ee
diff --git a/ansible/main.yml b/ansible/main.yml
index c79703ba..280fc6da 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 87513f81..552a2a0d 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 917ed0e8..001b8ce9 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 d280d506..90557e07 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