mac-setup/tasks/dock.yml
Paul van Noort 8bfc8f8fa6 dock
2021-04-07 19:18:39 +02:00

21 lines
549 B
YAML

---
- name: Install dockutil
homebrew:
name: dockutil
state: present
notify:
- Clear homebrew cache
- name: Remove all crap from Dock
shell: dockutil --remove '{{ item }}'
ignore_errors: true
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 }}"
- name: Fix order
shell: dockutil --move '{{ item.name }}' --position '{{ item.pos }}'
with_items: "{{ dockitems_to_persist }}"