Skip to content

Commit 475ab5b

Browse files
committed
feat: disable personalized ads
1 parent 2c1b91d commit 475ab5b

File tree

4 files changed

+33
-5
lines changed

4 files changed

+33
-5
lines changed

.ansible-lint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22

3+
# https://ansible-lint.readthedocs.io/en/latest/configuring/
4+
35
skip_list:
46
- 'experimental'
57
- 'risky-shell-pipe'

.pre-commit-config.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
---
22

33
repos:
4-
- hooks:
4+
- repo: https://github.com/adrienverge/yamllint
5+
rev: v1.26.3
6+
hooks:
7+
- id: yamllint
8+
files: \.(yaml|yml)$
9+
types: [file, yaml]
10+
entry: yamllint --strict
11+
12+
- repo: https://github.com/commitizen-tools/commitizen
13+
rev: v2.24.0
14+
hooks:
515
- id: commitizen
616
stages:
717
- commit-msg
8-
repo: https://github.com/commitizen-tools/commitizen
9-
rev: v2.20.0
18+
19+
- repo: https://github.com/ansible/ansible-lint
20+
rev: v6.0.2
21+
hooks:
22+
- id: ansible-lint
23+
files: \.(yaml|yml)$

defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,9 @@ security:
453453
# Turn off Feedback Assistant data auto-gathering.
454454
apple_feedback_assistant: false
455455

456+
# Turn off personalized ads, a little less tracking from apple side...
457+
disable_personalized_ads: true
458+
456459
firewall:
457460
# Turn on system firewall.
458461
# Turned off by default.

tasks/security.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,25 @@
2121
state: present
2222
changed_when: false
2323

24-
### Feedback Assistant
24+
### Privacy
2525

26-
- name: Security - Feedback Assistant - Turn off Feedback Assistant data auto-gathering.
26+
- name: Security - Privacy / Feedback Assistant - Turn off Feedback Assistant data auto-gathering.
2727
community.general.osx_defaults:
2828
domain: com.apple.appleseed.FeedbackAssistant
2929
key: Autogather
3030
type: bool
3131
value: "{{ security.privacy.apple_feedback_assistant }}"
3232
state: present
3333

34+
- name: Security - Privacy / Advertising - Disable Personalized Ads.
35+
community.general.osx_defaults:
36+
domain: com.apple.AdLib
37+
key: allowApplePersonalizedAdvertising
38+
type: int
39+
value: 0
40+
state: present
41+
when: security.privacy.disable_personalized_ads
42+
3443
### Firewall
3544

3645
# Alternative way

0 commit comments

Comments
 (0)