This commit is contained in:
Paul van Noort 2021-04-07 19:18:39 +02:00
parent ecaea525e0
commit 8bfc8f8fa6
2 changed files with 21 additions and 0 deletions

View file

@ -4,6 +4,7 @@ downloads: ~/.ansible-downloads/
configure_dotfiles: true
configure_terminal: false
configure_osx: true
configure_dock: []
configure_sudoers: false
sudoers_custom_config: ''

20
tasks/dock.yml Normal file
View file

@ -0,0 +1,20 @@
---
- 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 }}"