-
Notifications
You must be signed in to change notification settings - Fork 1
/
post_install.yml
185 lines (183 loc) · 5.77 KB
/
post_install.yml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
- hosts: localhost
tasks:
- name: Install Firefox
flatpak:
name: org.mozilla.firefox
- name: Install File Roller Archive Manager
flatpak:
name: org.gnome.FileRoller
- name: Install Baobab File Usage Analyzer
flatpak:
name: org.gnome.baobab
- name: Install Builder
flatpak:
name: org.gnome.Builder
- name: Install Junction
flatpak:
name: re.sonny.Junction
- name: Install Steam
flatpak:
name: com.valvesoftware.Steam
- name: Install Camera Controls
flatpak:
name: hu.irl.cameractrls
- name: Install the GIMP
flatpak:
name: org.gimp.GIMP
- name: Install Inkscape
flatpak:
name: org.inkscape.Inkscape
- name: Install Meld
flatpak:
name: org.gnome.meld
- name: Install Fragments
flatpak:
name: de.haeckerfelix.Fragments
- name: Install GHex Editor
flatpak:
name: org.gnome.GHex
- name: Install Dconf Editor
flatpak:
name: ca.desrt.dconf-editor
- name: Install GNOME Videos
flatpak:
name: org.gnome.Totem
- name: Install GNU Octave
flatpak:
name: org.octave.Octave
- name: Install LibreOffice
flatpak:
name: org.libreoffice.LibreOffice
- name: Install Fedora Media Writer
flatpak:
name: org.fedoraproject.MediaWriter
- name: Install Tube Converter
flatpak:
name: org.nickvision.tubeconverter
- name: Install Apostrophe Markdown Editor
flatpak:
name: org.gnome.gitlab.somas.Apostrophe
- name: Disable DConf Editor Warning
dconf:
key: /ca/desrt/dconf-editor/show-warning
value: "false"
- name: Interpret Caps Lock as Ctrl
dconf:
key: /org/gnome/desktop/input-sources/xkb-options
value: "['caps:ctrl_modifier']"
- name: Use LCD-Style Antialiasing
dconf:
key: /org/gnome/desktop/interface/font-antialiasing
value: "'rgba'"
- name: Automatically Remove Old Temporary Files
dconf:
key: /org/gnome/desktop/privacy/remove-old-temp-files
value: "true"
- name: Automatically Remove Old Trash Files
dconf:
key: /org/gnome/desktop/privacy/remove-old-trash-files
value: "true"
- name: Assume GNOME Software Has Been Used Before
dconf:
key: /org/gnome/software/first-run
value: "false"
- name: Show Seconds on the Desktop Clock
dconf:
key: /org/gnome/desktop/interface/clock-show-seconds
value: "true"
- name: Show Weekday on the Desktop Clock
dconf:
key: /org/gnome/desktop/interface/clock-show-weekday
value: "true"
- name: Use Natural Scrolling
dconf:
key: /org/gnome/desktop/peripherals/mouse/natural-scroll
value: "true"
- name: Disable All GNOME Extensions
dconf:
key: /org/gnome/shell/enabled-extensions
value: "@as []"
- name: Configure F12 to Reset and Clear the Terminal
dconf:
key: /org/gnome/terminal/legacy/keybindings/reset-and-clear
value: "'F12'"
- name: Read Default Terminal Profile
shell: "gsettings get org.gnome.Terminal.ProfilesList default | tr --delete \"'\""
register: terminal_default_profile
tags: register
- name: Terminal - Unlimited Scrollback
dconf:
key: /org/gnome/terminal/legacy/profiles:/:{{ terminal_default_profile.stdout }}/scrollback-unlimited
value: "true"
when: not ansible_check_mode
- name: Create Environment Configuration Directory
file:
path: ~/.config/environment.d/
state: directory
- name: Create Autostart Configuration Directory
file:
path: ~/.config/autostart/
state: directory
- name: Disable GNOME Keyring Autostart
copy:
dest: "~/.config/autostart/gnome-keyring-ssh.desktop"
content: |
[Desktop Entry]
Type=Application
Name=SSH Key Agent
Exec=/usr/bin/true
Hidden=true
- name: Configure SSH to Use the GPG Agent
copy:
dest: "~/.config/environment.d/50-ssh-agent.conf"
content: |
SSH_AGENT_PID=
SSH_AUTH_SOCK=${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh
- name: Create systemd User Session Directory
file:
path: ~/.config/systemd/user/
state: directory
- name: Create a GPG Agent Service
copy:
dest: "~/.config/systemd/user/gpg-agent.service"
content: |
[Service]
ExecStart=/usr/bin/gpg-agent --supervised --enable-ssh-support
ExecReload=/usr/bin/gpgconf --reload gpg-agent
- name: Create a GPG Agent Socket
copy:
dest: "~/.config/systemd/user/gpg-agent.socket"
content: |
[Socket]
ListenStream=%t/gnupg/S.gpg-agent
FileDescriptorName=std
SocketMode=0600
DirectoryMode=0700
[Install]
WantedBy=sockets.target
- name: Create a GPG SSH Agent Socket
copy:
dest: "~/.config/systemd/user/gpg-agent-ssh.socket"
content: |
[Socket]
ListenStream=%t/gnupg/S.gpg-agent.ssh
FileDescriptorName=ssh
Service=gpg-agent.service
SocketMode=0600
DirectoryMode=0700
[Install]
WantedBy=sockets.target
- name: Reload user-level systemd configuration
shell: systemctl --user daemon-reload
- name: Enable and Start the GPG Agent Socket
systemd:
name: gpg-agent.socket
state: started
enabled: yes
scope: user
- name: Enable and Start the GPG SSH Agent Socket
systemd:
name: gpg-agent-ssh.socket
state: started
enabled: yes
scope: user