diff --git a/roles/macos_03_tweaks/tasks/main.yml b/roles/macos_03_tweaks/tasks/main.yml index df7116b..4ec112f 100644 --- a/roles/macos_03_tweaks/tasks/main.yml +++ b/roles/macos_03_tweaks/tasks/main.yml @@ -23,6 +23,9 @@ value: false state: present +- name: Setup dock apps + community.general.osx_defaults: + - name: Remove all apps from dock community.general.osx_defaults: domain: com.apple.dock @@ -31,13 +34,13 @@ value: [] state: present - -- name: Add apps to dock +- name: Dock apps community.general.osx_defaults: domain: com.apple.dock key: persistent-apps - type: array-add - value: "'tile-datafile-data_CFURLString'{{ item }}'_CFURLStringType0'" + type: array + array_add: true + value: ['{{ item }}'] state: present with_items: "{{ macos.dock_apps }}" @@ -65,7 +68,7 @@ value: true state: present -- name: Set preferred view style to "Nlsv" +- name: Set preferred view style to list view ("Nlsv") community.general.osx_defaults: domain: com.apple.finder key: FXPreferredViewStyle