mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2024-11-24 21:03:26 +00:00
23 lines
649 B
YAML
23 lines
649 B
YAML
---
|
|
- name: ensure dock items
|
|
block:
|
|
- name: Install dockutil
|
|
homebrew:
|
|
name: dockutil
|
|
state: present
|
|
notify:
|
|
- Clear homebrew cache
|
|
|
|
- name: Ensure unwanted dock items removed.
|
|
command: dockutil --remove '{{ item }}'
|
|
ignore_errors: true
|
|
loop: "{{ dockitems_to_remove }}"
|
|
|
|
- name: Ensure required dock items exist.
|
|
shell: dockutil --find '{{ item.name }}' || dockutil --add '{{ item.path }}'
|
|
loop: "{{ dockitems_to_persist }}"
|
|
|
|
- name: Ensure correct dock order
|
|
command: dockutil --move '{{ item.name }}' --position '{{ item.pos }}'
|
|
loop: "{{ dockitems_to_persist }}"
|
|
tags: ['dock']
|