-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcom.apple.yaml
executable file
·44 lines (40 loc) · 1.4 KB
/
com.apple.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env ANSIBLE_HOSTS="localhost," ANSIBLE_CONNECTION=local ansible-playbook
# vim:ft=yaml
---
- name: install com.apple defaults
hosts: localhost
tasks:
- name: com.apple.LaunchServices
osx_defaults:
domain: com.apple.LaunchServices
state: present
key: "{{ item.key }}"
type: "{{ item.type }}"
value: "{{ item.value }}"
with_items:
- { key: "LSQuarantine", type: "bool", value: "false" }
- name: com.apple.loginwindow
osx_defaults:
domain: com.apple.loginwindow
state: present
key: "{{ item.key }}"
type: "{{ item.type }}"
value: "{{ item.value }}"
with_items:
- { key: "PowerButtonSleepsSystem", type: "bool", value: "true" }
- { key: "GuestEnabled", type: "bool", value: "false" }
- name: Provide the Airport tool in path
file:
src: /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
name: /usr/local/bin/airport
state: link
become: yes
- name: Provide the lsregister tool in path
file:
src: /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister
name: /usr/local/bin/lsregister
state: link
become: yes
- name: systemsetup -setrestartfreeze on
raw: systemsetup -setrestartfreeze on
become: yes