diff --git a/README.md b/README.md index a2276e7..4a25e9f 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/default.config.yml b/default.config.yml index b62bdfc..3531dcc 100644 --- a/default.config.yml +++ b/default.config.yml @@ -15,6 +15,7 @@ dockitems_remove: [] dockitems_persist: [] # - name: "Sublime Text" # path: "/Applications/Sublime Text.app/" +# pos: 5 configure_sudoers: false sudoers_custom_config: '' diff --git a/tasks/dock.yml b/tasks/dock.yml index d1130ee..560d517 100644 --- a/tasks/dock.yml +++ b/tasks/dock.yml @@ -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 }}"