fix dock apps
Some checks failed
Lint / Lint (3.10) (push) Failing after 16s
Lint / Lint (3.11) (push) Failing after 19s

This commit is contained in:
Ariejan de Vroom 2024-06-10 14:13:37 +02:00
parent 2c5f6ee903
commit f862c981f7
Signed by: ariejan
GPG Key ID: AD739154F713697B

View File

@ -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: "'<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>'{{ item }}'</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'"
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