Add some more macOS specific setup via Ansible playbooks

This commit is contained in:
2020-07-04 13:18:28 +01:00
parent 712755da40
commit 8e866fbdd5
2 changed files with 47 additions and 0 deletions

View File

@@ -8,3 +8,9 @@
type: string
value: '-l -W --kw-case=none'
state: present
- name: "Safari: Enable Debug menu"
osx_defaults:
domain: com.apple.Safari
key: IncludeInternalDebugMenu
type: integer
value: 1

41
playbooks/macos_dock.yml Normal file
View File

@@ -0,0 +1,41 @@
---
- hosts: localhost
tasks:
- name: "Dock: Set icon size"
osx_defaults:
domain: com.apple.dock
key: tilesize
type: float
value: 55
notify: restart Dock
- name: "Dock: Enable magnification"
osx_defaults:
domain: com.apple.dock
key: magnification
type: boolean
value: true
notify: restart Dock
- name: "Dock: Set magnified icon size"
osx_defaults:
domain: com.apple.dock
key: largesize
type: float
value: 70
notify: restart Dock
- name: "Dock: Do not show recent apps"
osx_defaults:
domain: com.apple.dock
key: show-recents
type: boolean
value: false
notify: restart Dock
- name: "Dock: Do not auto-hide"
osx_defaults:
domain: com.apple.dock
key: autohide
type: boolean
value: false
notify: restart Dock
handlers:
- name: restart Dock
command: killall Dock