Skip to content

Commit 8d9c264

Browse files
Merge pull request #18 from ccdc-opensource/updating-to-full-collection-names
Updating to full collection names
2 parents dca16ce + ac45301 commit 8d9c264

6 files changed

+21
-27
lines changed

tasks/clear-the-dock.yml

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
---
22
- name: Use /Applications for MacOS < 10.15
3-
set_fact:
3+
ansible.builtin.set_fact:
44
dockitems_enabled: "{{ dockitems_enabled_pre_10_15 }}"
55
when: ansible_distribution_version is version('10.15', '<')
66

77
- name: Use /System/Applications for MacOS >= 10.15
8-
set_fact:
8+
ansible.builtin.set_fact:
99
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', '>=')

tasks/defaults-for-build-machine-speed.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Disable animations
3-
osx_defaults:
3+
community.general.osx_defaults:
44
domain: NSGlobalDomain
55
key: NSAutomaticWindowAnimationsEnabled
66
type: bool
@@ -10,7 +10,7 @@
1010
- Restart Finder
1111

1212
- name: Resize windows without delay
13-
osx_defaults:
13+
community.general.osx_defaults:
1414
domain: NSGlobalDomain
1515
key: NSWindowResizeTime
1616
type: float
@@ -20,7 +20,7 @@
2020
- Restart Finder
2121

2222
- name: Instant dock resizing
23-
osx_defaults:
23+
community.general.osx_defaults:
2424
domain: com.apple.dock
2525
key: expose-animation-duration
2626
type: int
@@ -30,7 +30,7 @@
3030
- Restart Finder
3131

3232
- name: No bouncy icons in dock
33-
osx_defaults:
33+
community.general.osx_defaults:
3434
domain: com.apple.dock
3535
key: launchanim
3636
type: bool
@@ -40,7 +40,7 @@
4040
- Restart Finder
4141

4242
- name: Disable the Screensaver
43-
osx_defaults:
43+
community.general.osx_defaults:
4444
domain: com.apple.screensaver
4545
key: idleTime
4646
type: int
@@ -50,7 +50,7 @@
5050
- Restart Finder
5151

5252
- name: don't prompt on new drives for timemachine
53-
osx_defaults:
53+
community.general.osx_defaults:
5454
domain: com.apple.TimeMachine
5555
key: DoNotOfferNewDisksForBackup
5656
type: bool
@@ -61,7 +61,7 @@
6161

6262
- name: show info in login screen
6363
become: true
64-
osx_defaults:
64+
community.general.osx_defaults:
6565
domain: /Library/Preferences/com.apple.loginwindow
6666
key: AdminHostInfo
6767
type: string

tasks/disable-autoupdates.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
- name: Disable automatic updates
3-
command: softwareupdate --schedule off
3+
ansible.builtin.command: softwareupdate --schedule off
44
changed_when: false
55
become: true

tasks/disable-spotlight.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
22
- name: Disable constant indexing by spotlight # noqa: no-changed-when
3-
command: mdutil -i off /
3+
ansible.builtin.command: mdutil -i off /
44
ignore_errors: true # noqa: ignore-errors
55
become: true
66

77
- name: kill all spotlight indexers # noqa: no-changed-when
8-
command: killall mds
8+
ansible.builtin.command: killall mds
99
ignore_errors: true # noqa: ignore-errors
1010
become: true
1111

1212
- name: rebuild spotlight index # noqa: no-changed-when
13-
command: mdutil -E
13+
ansible.builtin.command: mdutil -E
1414
ignore_errors: true # noqa: ignore-errors
1515
become: true
1616

1717
- name: Disable constant indexing by spotlight # noqa: no-changed-when
18-
command: mdutil -i off /
18+
ansible.builtin.command: mdutil -i off /
1919
ignore_errors: true # noqa: ignore-errors
2020
become: true

tasks/main.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
- name: stop mac from sleeping
3-
include: never-sleep.yml
3+
ansible.builtin.include_tasks: never-sleep.yml
44

55
- name: stop automatic updates, we decide when
6-
include: disable-autoupdates.yml
6+
ansible.builtin.include_tasks: disable-autoupdates.yml
77

88
- 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
1010

1111
- name: disable spotlight searching
12-
include: disable-spotlight.yml
12+
ansible.builtin.include_tasks: disable-spotlight.yml
1313

1414
- name: clear the dock
15-
include: clear-the-dock.yml
15+
ansible.builtin.include_tasks: clear-the-dock.yml

tasks/never-sleep.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Never Sleep Mode
3-
command: "{{ item }}"
3+
ansible.builtin.command: "{{ item }}"
44
with_items:
55
- pmset -a standbydelay 0
66
- pmset -a displaysleep 0

0 commit comments

Comments
 (0)