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 - name: mkdocs
configure_dock: true configure_dock: true
dockitems_remove: [] dockitems_remove:
dockitems_persist: [] - 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. 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: [] dockitems_persist: []
# - name: "Sublime Text" # - name: "Sublime Text"
# path: "/Applications/Sublime Text.app/" # path: "/Applications/Sublime Text.app/"
# pos: 5
configure_sudoers: false configure_sudoers: false
sudoers_custom_config: '' sudoers_custom_config: ''

View file

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