|
1 | 1 |
|
2 |
| -- name: Core OS customization (macOS) |
| 2 | +- name: Core OS customization |
3 | 3 | hosts: 127.0.0.1
|
4 | 4 | connection: local
|
5 | 5 |
|
6 | 6 | tasks:
|
7 | 7 |
|
8 |
| - - name: Ensure software updates daily (macOS) |
| 8 | + - name: Ensure software updates daily |
9 | 9 | shell:
|
10 | 10 | cmd: "defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1"
|
11 | 11 |
|
12 |
| - - name: Increase sound quality for Bluetooth headphones/headsets (macOS) |
| 12 | + - name: Increase sound quality for Bluetooth headphones/headsets |
13 | 13 | shell:
|
14 | 14 | cmd: "defaults write com.apple.BluetoothAudioAgent 'Apple Bitpool Min (editable)' -int 40"
|
15 | 15 |
|
16 |
| - - name: Require password after sleep or screen saver begins (macOS) |
| 16 | + - name: Require password after sleep or screen saver begins |
17 | 17 | shell:
|
18 | 18 | cmd: "defaults write com.apple.screensaver askForPassword -int 1"
|
19 | 19 |
|
20 |
| - - name: Require password immediately after sleep or screen saver begins (macOS) |
| 20 | + - name: Require password immediately after sleep or screen saver begins |
21 | 21 | shell:
|
22 | 22 | cmd: "defaults write com.apple.screensaver askForPasswordDelay -int 0"
|
23 | 23 |
|
24 |
| - - name: Save screenshots to desktop (macOS) |
| 24 | + - name: Save screenshots to desktop |
25 | 25 | shell:
|
26 | 26 | cmd: "defaults write com.apple.screencapture location -string '${HOME}/Desktop'"
|
27 | 27 |
|
28 |
| - - name: Save screenshots as png (macOS) |
| 28 | + - name: Save screenshots as png |
29 | 29 | shell:
|
30 | 30 | cmd: "defaults write com.apple.screencapture type -string 'png'"
|
31 | 31 |
|
32 |
| - - name: Change new window target (macOS) |
| 32 | + - name: Change new window target |
33 | 33 | shell:
|
34 | 34 | cmd: "defaults write com.apple.finder NewWindowTarget -string 'PfDe'"
|
35 | 35 |
|
36 |
| - - name: Set new window to dev (macOS) |
| 36 | + - name: Set new window to dev |
37 | 37 | shell:
|
38 | 38 | cmd: "defaults write com.apple.finder NewWindowTargetPath -string 'file://${HOME}/dev/'"
|
39 | 39 |
|
40 |
| - - name: Show hidden files (macOS) |
| 40 | + - name: Show hidden files |
41 | 41 | shell:
|
42 | 42 | cmd: "defaults write com.apple.finder AppleShowAllFiles -bool true"
|
43 | 43 |
|
44 |
| - - name: Show file extensions (macOS) |
| 44 | + - name: Show file extensions |
45 | 45 | shell:
|
46 | 46 | cmd: "defaults write NSGlobalDomain AppleShowAllExtensions -bool true"
|
47 | 47 |
|
48 |
| - - name: Search current folder (macOS) |
| 48 | + - name: Search current folder |
49 | 49 | shell:
|
50 | 50 | cmd: "defaults write com.apple.finder FXDefaultSearchScope -string 'SCcf'"
|
51 | 51 |
|
52 |
| - - name: No warning for extension change (macOS) |
| 52 | + - name: No warning for extension change |
53 | 53 | shell:
|
54 | 54 | cmd: "defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false"
|
55 | 55 |
|
56 |
| - - name: Skip DS_Store creation (macOS) |
| 56 | + - name: Skip DS_Store creation |
57 | 57 | shell:
|
58 | 58 | cmd: "defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true"
|
59 | 59 |
|
60 |
| - - name: Skip DS_Store creation usb (macOS) |
| 60 | + - name: Skip DS_Store creation usb |
61 | 61 | shell:
|
62 | 62 | cmd: "defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true"
|
63 | 63 |
|
64 |
| - - name: Disable trash empty warning (macOS) |
| 64 | + - name: Disable trash empty warning |
65 | 65 | shell:
|
66 | 66 | cmd: "defaults write com.apple.finder WarnOnEmptyTrash -bool false"
|
67 | 67 |
|
68 |
| - - name: Empty trash securely (macOS) |
| 68 | + - name: Empty trash securely |
69 | 69 | shell:
|
70 | 70 | cmd: "defaults write com.apple.finder EmptyTrashSecurely -bool true"
|
71 | 71 |
|
72 |
| - - name: Disable the Are you sure you want to open this application? dialog (macOS) |
| 72 | + - name: Disable the Are you sure you want to open this application? dialog |
73 | 73 | shell:
|
74 | 74 | cmd: "defaults write com.apple.LaunchServices LSQuarantine -bool false"
|
75 | 75 |
|
76 |
| - - name: Disable automatic period substitution as it’s annoying when typing code (macOS) |
| 76 | + - name: Disable automatic period substitution as it’s annoying when typing code |
77 | 77 | shell:
|
78 | 78 | cmd: "defaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -bool false"
|
79 | 79 |
|
80 |
| - - name: Disable press-and-hold for keys in favor of key repeat (macOS) |
| 80 | + - name: Disable press-and-hold for keys in favor of key repeat |
81 | 81 | shell:
|
82 | 82 | cmd: "defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false"
|
83 | 83 |
|
84 |
| - - name: Key Repeat (macOS) |
| 84 | + - name: Key Repeat |
85 | 85 | shell:
|
86 | 86 | cmd: "defaults write NSGlobalDomain KeyRepeat -int 2"
|
87 | 87 |
|
88 |
| - - name: Faster repeat rate (macOS) |
| 88 | + - name: Faster repeat rate |
89 | 89 | shell:
|
90 | 90 | cmd: "defaults write NSGlobalDomain InitialKeyRepeat -int 25"
|
91 | 91 |
|
92 |
| - - name: Disable machine sleep while charging (macOS) |
| 92 | + - name: Disable machine sleep while charging |
93 | 93 | become: yes
|
94 | 94 | shell:
|
95 | 95 | cmd: "pmset -c sleep 0"
|
96 | 96 |
|
97 |
| - - name: Disable dashboard (macOS) |
| 97 | + - name: Disable dashboard |
98 | 98 | shell:
|
99 | 99 | cmd: "defaults write com.apple.dashboard mcx-disabled -bool true"
|
100 | 100 |
|
101 |
| - - name: Speed up mouse (macOS) |
| 101 | + - name: Speed up mouse |
102 | 102 | become: yes
|
103 | 103 | shell:
|
104 | 104 | cmd: "defaults write -g com.apple.mouse.scaling -int 2.5"
|
105 | 105 |
|
106 |
| - - name: Auto hide dock (macOS) |
| 106 | + - name: Auto hide dock |
107 | 107 | shell:
|
108 | 108 | cmd: "defaults write com.apple.dock autohide -bool true && killall Dock"
|
109 | 109 |
|
110 |
| - - name: Tap to click (macOS) |
| 110 | + - name: Tap to click |
111 | 111 | shell:
|
112 | 112 | cmd: "defaults write com.apple.AppleMultitouchTrackpad Clicking 1"
|
113 | 113 |
|
114 |
| - - name: Three finger drag (macOS) |
| 114 | + - name: Three finger drag |
115 | 115 | shell:
|
116 | 116 | cmd: "defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag 1"
|
117 | 117 |
|
118 |
| - - name: Horizontal Swipe Gesture (macOS) |
| 118 | + - name: Horizontal Swipe Gesture |
119 | 119 | shell:
|
120 | 120 | cmd: "defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerHorizSwipeGesture 0"
|
121 | 121 |
|
122 |
| - - name: Verticle Swipe Gesture (macOS) |
| 122 | + - name: Verticle Swipe Gesture |
123 | 123 | shell:
|
124 | 124 | cmd: "defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerVertSwipeGesture 0"
|
125 | 125 |
|
126 |
| - - name: Right edge Swipe Gesture (macOS) |
| 126 | + - name: Right edge Swipe Gesture |
127 | 127 | shell:
|
128 | 128 | cmd: "defaults write com.apple.AppleMultitouchTrackpad TrackpadTwoFingerFromRightEdgeSwipeGesture 0"
|
0 commit comments