mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2024-11-22 03:43:06 +00:00
dock
This commit is contained in:
parent
ecaea525e0
commit
8bfc8f8fa6
2 changed files with 21 additions and 0 deletions
|
@ -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
20
tasks/dock.yml
Normal 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 }}"
|
Loading…
Reference in a new issue