File tree 6 files changed +21
-27
lines changed
6 files changed +21
-27
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Use /Applications for MacOS < 10.15
3
- set_fact :
3
+ ansible.builtin. set_fact :
4
4
dockitems_enabled : " {{ dockitems_enabled_pre_10_15 }}"
5
5
when : ansible_distribution_version is version('10.15', '<')
6
6
7
7
- name : Use /System/Applications for MacOS >= 10.15
8
- set_fact :
8
+ ansible.builtin. set_fact :
9
9
dockitems_enabled : " {{ dockitems_enabled_post_10_15 }}"
10
- when : ansible_distribution_version is version('10.15', '>=')
11
-
12
- - name : clear the dock
13
- include_role :
14
- name : fubarhouse.macdock
15
- vars :
16
- dockutil_url : https://raw.githubusercontent.com/kcrawford/dockutil/2.0.5/scripts/dockutil
10
+ when : ansible_distribution_version is version('10.15', '>=')
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Disable animations
3
- osx_defaults :
3
+ community.general. osx_defaults :
4
4
domain : NSGlobalDomain
5
5
key : NSAutomaticWindowAnimationsEnabled
6
6
type : bool
10
10
- Restart Finder
11
11
12
12
- name : Resize windows without delay
13
- osx_defaults :
13
+ community.general. osx_defaults :
14
14
domain : NSGlobalDomain
15
15
key : NSWindowResizeTime
16
16
type : float
20
20
- Restart Finder
21
21
22
22
- name : Instant dock resizing
23
- osx_defaults :
23
+ community.general. osx_defaults :
24
24
domain : com.apple.dock
25
25
key : expose-animation-duration
26
26
type : int
30
30
- Restart Finder
31
31
32
32
- name : No bouncy icons in dock
33
- osx_defaults :
33
+ community.general. osx_defaults :
34
34
domain : com.apple.dock
35
35
key : launchanim
36
36
type : bool
40
40
- Restart Finder
41
41
42
42
- name : Disable the Screensaver
43
- osx_defaults :
43
+ community.general. osx_defaults :
44
44
domain : com.apple.screensaver
45
45
key : idleTime
46
46
type : int
50
50
- Restart Finder
51
51
52
52
- name : don't prompt on new drives for timemachine
53
- osx_defaults :
53
+ community.general. osx_defaults :
54
54
domain : com.apple.TimeMachine
55
55
key : DoNotOfferNewDisksForBackup
56
56
type : bool
61
61
62
62
- name : show info in login screen
63
63
become : true
64
- osx_defaults :
64
+ community.general. osx_defaults :
65
65
domain : /Library/Preferences/com.apple.loginwindow
66
66
key : AdminHostInfo
67
67
type : string
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Disable automatic updates
3
- command : softwareupdate --schedule off
3
+ ansible.builtin. command : softwareupdate --schedule off
4
4
changed_when : false
5
5
become : true
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Disable constant indexing by spotlight # noqa: no-changed-when
3
- command : mdutil -i off /
3
+ ansible.builtin. command : mdutil -i off /
4
4
ignore_errors : true # noqa: ignore-errors
5
5
become : true
6
6
7
7
- name : kill all spotlight indexers # noqa: no-changed-when
8
- command : killall mds
8
+ ansible.builtin. command : killall mds
9
9
ignore_errors : true # noqa: ignore-errors
10
10
become : true
11
11
12
12
- name : rebuild spotlight index # noqa: no-changed-when
13
- command : mdutil -E
13
+ ansible.builtin. command : mdutil -E
14
14
ignore_errors : true # noqa: ignore-errors
15
15
become : true
16
16
17
17
- name : Disable constant indexing by spotlight # noqa: no-changed-when
18
- command : mdutil -i off /
18
+ ansible.builtin. command : mdutil -i off /
19
19
ignore_errors : true # noqa: ignore-errors
20
20
become : true
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : stop mac from sleeping
3
- include : never-sleep.yml
3
+ ansible.builtin.include_tasks : never-sleep.yml
4
4
5
5
- name : stop automatic updates, we decide when
6
- include : disable-autoupdates.yml
6
+ ansible.builtin.include_tasks : disable-autoupdates.yml
7
7
8
8
- name : setup desktop defaults that increase speed
9
- include : defaults-for-build-machine-speed.yml
9
+ ansible.builtin.include_tasks : defaults-for-build-machine-speed.yml
10
10
11
11
- name : disable spotlight searching
12
- include : disable-spotlight.yml
12
+ ansible.builtin.include_tasks : disable-spotlight.yml
13
13
14
14
- name : clear the dock
15
- include : clear-the-dock.yml
15
+ ansible.builtin.include_tasks : clear-the-dock.yml
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Never Sleep Mode
3
- command : " {{ item }}"
3
+ ansible.builtin. command : " {{ item }}"
4
4
with_items :
5
5
- pmset -a standbydelay 0
6
6
- pmset -a displaysleep 0
You can’t perform that action at this time.
0 commit comments