arch-install/roles/macos_04_tweaks/tasks/main.yml

126 lines
2.9 KiB
YAML
Raw Normal View History

2024-06-10 10:37:20 +00:00
---
- name: Set dock tilesize
community.general.osx_defaults:
domain: com.apple.dock
key: tilesize
type: int
value: 36
state: present
- name: Set dock orientation
community.general.osx_defaults:
domain: com.apple.dock
key: orientation
type: string
value: left
state: present
- name: Disable recents in dock
community.general.osx_defaults:
domain: com.apple.dock
key: show-recents
type: bool
value: false
state: present
- name: Remove all apps from dock
community.general.osx_defaults:
domain: com.apple.dock
key: persistent-apps
type: array
value: []
state: present
2024-06-10 12:13:37 +00:00
- name: Dock apps
2024-06-10 11:08:19 +00:00
community.general.osx_defaults:
domain: com.apple.dock
key: persistent-apps
2024-06-10 12:13:37 +00:00
type: array
array_add: true
2024-06-10 14:23:13 +00:00
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>']
2024-06-10 11:08:19 +00:00
state: present
with_items: "{{ macos.dock_apps }}"
2024-06-10 10:51:45 +00:00
- name: Show all Extensions
community.general.osx_defaults:
domain: NSGlobalDomain
key: AppleShowAllExtensions
type: bool
value: true
state: present
- name: Show all files
community.general.osx_defaults:
domain: com.apple.finder
key: AppleShowAllFiles
type: bool
value: true
state: present
- name: Show path in finder bar
community.general.osx_defaults:
domain: com.apple.finder
key: ShowPathbar
type: bool
value: true
state: present
2024-06-10 12:13:37 +00:00
- name: Set preferred view style to list view ("Nlsv")
2024-06-10 10:51:45 +00:00
community.general.osx_defaults:
domain: com.apple.finder
key: FXPreferredViewStyle
type: string
value: Nlsv
state: present
- name: Sort folders first
community.general.osx_defaults:
domain: com.apple.finder
key: _FXSortFoldersFirst
type: bool
value: true
state: present
- name: Disable extension change warning
community.general.osx_defaults:
domain: com.apple.finder
key: FXEnableExtensionChangeWarning
type: bool
value: false
state: present
- name: Set default Finder location to home folder
community.general.osx_defaults:
domain: com.apple.finder
key: NewWindowTarget
type: string
value: PfHm
state: present
- name: Flash date separators
community.general.osx_defaults:
domain: com.apple.menuextra.clock
key: FlashDateSeparators
type: bool
value: true
state: present
- name: Set clock to 24-hour format
community.general.osx_defaults:
domain: com.apple.menuextra.clock
key: DateFormat
type: string
value: H:mm
state: present
- name: Restart Dock
2024-06-10 10:53:52 +00:00
ansible.builtin.shell: killall Dock
2024-06-10 10:51:45 +00:00
changed_when: false
- name: Restart SystemUIServer
2024-06-10 10:53:52 +00:00
ansible.builtin.shell: killall SystemUIServer
2024-06-10 14:23:13 +00:00
changed_when: false
- name: Set Firefox as default browser
ansible.builtin.shell: defaultbrowser firefox