You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
746 B
21 lines
746 B
9 years ago
|
- name: install dockutil
|
||
|
homebrew: name=dockutil state=present
|
||
|
|
||
3 years ago
|
- command: dockutil --list
|
||
10 years ago
|
register: dockutil_result
|
||
9 years ago
|
- name: remove all Dock icons
|
||
3 years ago
|
command: dockutil --remove all
|
||
5 years ago
|
when: not (dockutil_result.stdout_lines | length == 1 and dockutil_result.stdout is search("^Downloads"))
|
||
9 years ago
|
- name: add ~/Downloads to the Dock
|
||
3 years ago
|
command: dockutil --add ~/Downloads
|
||
10 years ago
|
--view list
|
||
10 years ago
|
--display stack
|
||
|
--sort datemodified
|
||
5 years ago
|
when: not (dockutil_result.stdout_lines | length == 1 and dockutil_result.stdout is search("^Downloads"))
|
||
9 years ago
|
|
||
|
- name: remove Dockutil
|
||
|
homebrew: name=dockutil state=absent
|
||
|
|
||
|
- name: restart Dock
|
||
|
command: killall Dock
|