Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (31 sloc) 855 Bytes
---
- name: Check if iterm2 config is differ
shell: |
diff <(plutil -convert binary1 -o - ./com.googlecode.iterm2.plist | md5 -q) <(md5 -q ~/Library/Preferences/com.googlecode.iterm2.plist)
args:
chdir: roles/mac/files/Library/Preferences
executable: /bin/bash
register: diff_result
always_run: true
failed_when: false
changed_when: diff_result.rc != 0
notify:
- Restore iterm2 configuration
- name: Create alias symlink
file:
src: "{{ item.src }}"
dest: "/usr/local/bin/{{ item.dest }}"
state: link
with_items:
- "{{ symlinks }}"
- name: Setup OS X defaults
osx_defaults:
domain: "{{ item.domain }}"
key: "{{ item.key }}"
type: "{{ item.type }}"
value: "{{ item.value }}"
state: present
notify:
- "{{ item.notify | default(omit) }}"
with_items:
- "{{ osx_defaults }}"
You can’t perform that action at this time.