-
Notifications
You must be signed in to change notification settings - Fork 1
/
com.apple.Safari.yaml
executable file
·64 lines (62 loc) · 3.32 KB
/
com.apple.Safari.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env ANSIBLE_HOSTS="localhost," ANSIBLE_CONNECTION=local ansible-playbook
# vim:ft=yaml
---
- name: install safari defaults
hosts: localhost
vars:
tasks:
- name: com.apple.Safari
osx_defaults:
domain: com.apple.Safari
state: present
key: "{{ item.key }}"
type: "{{ item.type }}"
value: "{{ item.value }}"
with_items:
- { key: "AlwaysShowTabBar", type: "bool", value: "true" }
- { key: "AutoFillCreditCardData", type: "bool", value: "true" }
- { key: "AutoFillFromAddressBook", type: "bool", value: "true" }
- { key: "AutoFillMiscellaneousForms", type: "bool", value: "true" }
- { key: "AutoFillPasswords", type: "int", value: "1" }
- { key: "AutoOpenSafeDownloads", type: "bool", value: "false" }
- { key: "AutoShowToolbarInFullScreen", type: "bool", value: "true" }
- { key: "CanPromptForPushNotifications", type: "bool", value: "false" }
- { key: "Command1Through9SwitchesTabs", type: "bool", value: "false" }
- { key: "ContentPageGroupIdentifier.WebKit2BackspaceKeyNavigationEnabled", type: "bool", value: "true" }
- { key: "ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled", type: "bool", value: "true" }
- { key: "ContentPageGroupIdentifier.WebKit2TabsToLinks", type: "bool", value: "true" }
- { key: "ContentPageGroupIdentifier.WebKitDeveloperExtrasEnabledPreferenceKey", type: "bool", value: "true" }
- { key: "DebugSnapshotsUpdatePolicy", type: "int", value: "2" }
- { key: "ExtensionsEnabled", type: "bool", value: "true" }
- { key: "FindOnPageMatchesWordStartsOnly", type: "bool", value: "true" }
- { key: "HomePage", type: "string", value: "" }
- { key: "IncludeDevelopMenu", type: "bool", value: "true" }
- { key: "IncludeInternalDebugMenu", type: "bool", value: "true" }
- { key: "NewTabBehavior", type: "int", value: "1" }
- { key: "NewWindowBehavior", type: "int", value: "1" }
- { key: "SendDoNotTrackHTTPHeader", type: "bool", value: "true" }
- { key: "ShowFavoritesBar", type: "bool", value: "true" }
- { key: "ShowFullURLInSmartSearchField", type: "bool", value: "true" }
- { key: "ShowOverlayStatusBar", type: "bool", value: "true" }
- { key: "ShowSidebarInNewWindows", type: "bool", value: "false" }
- { key: "ShowSidebarInTopSites", type: "bool", value: "false" }
- { key: "ShowStatusBar", type: "bool", value: "true" }
- { key: "SuppressSearchSuggestions", type: "bool", value: "false" }
- { key: "UniversalSearchEnabled", type: "bool", value: "true" }
- { key: "UserStyleSheetEnabled", type: "bool", value: "true" }
- { key: "UserStyleSheetLocationURLString", type: "string", value: "~/.safari/default.css" }
- { key: "WebKitDeveloperExtras", type: "bool", value: "true" }
- { key: "WebKitTabToLinksPreferenceKey", type: "bool", value: "true" }
- name: Add default css for Safari
template:
src: templates/default.css.j2
dest: templates/default.css.j2
mode: 0644
- name: Other settings related to Safari
osx_defaults:
domain: "{{ osx_domain }}"
key: "{{ item.key }}"
type: "{{ item.type }}"
value: "{{ item.value }}"
with_items: "{{ osx_domain_values | default([]) }}"
when: osx_domain_values is defined