Fixes #114: Make ensure correct Dock order task work correctly.

This commit is contained in:
Jeff Geerling 2021-05-27 11:27:56 -05:00
parent 2cfbd1289a
commit 0bae73dcc4
3 changed files with 9 additions and 3 deletions

View file

@ -83,8 +83,13 @@ You can override any of the defaults configured in `default.config.yml` by creat
- name: mkdocs
configure_dock: true
dockitems_remove: []
dockitems_persist: []
dockitems_remove:
- Launchpad
- TV
dockitems_persist:
- name: "Sublime Text"
path: "/Applications/Sublime Text.app/"
pos: 5
Any variable can be overridden in `config.yml`; see the supporting roles' documentation for a complete list of available variables.

View file

@ -15,6 +15,7 @@ dockitems_remove: []
dockitems_persist: []
# - name: "Sublime Text"
# path: "/Applications/Sublime Text.app/"
# pos: 5
configure_sudoers: false
sudoers_custom_config: ''

View file

@ -19,5 +19,5 @@
cmd: dockutil --move '{{ item.name }}' --position '{{ item.pos }}'
when:
- item.pos is defined
- item.pos length >0
- item.pos > 0
loop: "{{ dockitems_persist }}"