-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
185 lines (160 loc) · 5.15 KB
/
playbook.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
connection: local
vars_files:
- vars/config.yml
tasks:
- name: Running updates
become: yes
dnf:
name: "*"
update_only: yes
state: latest
- name: Remove unnecessary software
become: yes
package:
name: evolution
state: absent
- name: Install essentials
become: yes
package:
name:
#- python2-libselinux
- python3-libselinux
#- python2-psutil
- python3-psutil
- firefox
- thunderbird
- libreoffice
- flatpak
- leafpad
- autokey-gtk
state: present
- name: Enabling Google Chrome repository
become: yes
copy:
src: google-chrome.repo
dest: /etc/yum.repos.d/
owner: root
group: root
mode: 0644
- name: Installing Google Chrome
become: yes
dnf:
name: google-chrome-stable
state: present
- name: Adding the Flatpak Flathub repository
become: yes
command: flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- name: Install Spotify
become: yes
flatpak:
name: https://flathub.org/repo/appstream/com.spotify.Client.flatpakref
state: present
- name: Install Discord
become: yes
flatpak:
name: https://flathub.org/repo/appstream/com.discordapp.Discord.flatpakref
state: present
- name: Install VLC
become: yes
flatpak:
name: https://flathub.org/repo/appstream/org.videolan.VLC.flatpakref
state: present
- name: Install FileZilla
become: yes
flatpak:
name: https://flathub.org/repo/appstream/org.filezillaproject.Filezilla.flatpakref
state: present
- name: Install Visual Studio Code
import_role:
name: vscode
vars:
users:
- username: "{{ username }}"
visual_studio_code_settings: {
"git.autofetch": true,
"window.titleBarStyle": "custom",
"workbench.colorTheme": "Dracula"
}
- name: Installing GNOME tweaks & themes
become: yes
package:
name:
- gnome-tweaks
- arc-theme
- paper-icon-theme
state: present
- name: Copying wallpaper to Pictures folder
copy:
src: "wallpapers/{{ wallpaper }}"
dest: "/home/{{ username }}/Pictures/Wallpapers/"
owner: "{{ username }}"
mode: 0600
- name: Setting GNOME wallpaper
become: yes
become_user: "{{ username }}"
dconf:
key: "/org/gnome/desktop/background/picture-uri"
value: "'file:///home/{{ username }}/Pictures/Wallpapers/{{ wallpaper }}'"
- name: Setting GDM lockscreen
become: yes
become_user: "{{ username }}"
dconf:
key: "/org/gnome/desktop/screensaver/picture-uri"
value: "'file:///home/{{ username }}/Pictures/Wallpapers/{{ wallpaper }}'"
- name: Setting GTK theme
become: yes
become_user: "{{ username }}"
dconf:
key: "/org/gnome/desktop/interface/gtk-theme"
value: "'Arc-Dark'"
- name: Setting GNOME shell theme
become: yes
become_user: "{{ username }}"
dconf:
key: "/org/gnome/shell/extensions/user-theme/name"
value: "'Arc-Dark'"
- name: Setting icon theme
become: yes
become_user: "{{ username }}"
dconf:
key: "/org/gnome/desktop/interface/icon-theme"
value: "'Paper'"
- name: Setting cursor theme
become: yes
become_user: "{{ username }}"
dconf:
key: "/org/gnome/desktop/interface/cursor-theme"
value: "'Paper'"
- name: Setting icons in GNOME dock
become: yes
become_user: "{{ username }}"
dconf:
key: "/org/gnome/shell/favorite-apps"
value: "['google-chrome.desktop', 'firefox.desktop', 'com.slack.Slack.desktop', 'com.spotify.Client.desktop', 'code.desktop', 'org.gnome.Nautilus.desktop', 'org.gnome.Terminal.desktop']"
# Alternate tab doesn't work in F30
- name: Configuring GNOME extensions
become: yes
become_user: "{{ username }}"
dconf:
key: "/org/gnome/shell/enabled-extensions"
value: "['[email protected]', '[email protected]']"
- name: Setting Window titlebar settings
become: yes
become_user: "{{ username }}"
dconf:
key: "/org/gnome/desktop/wm/preferences/button-layout"
value: "'appmenu:minimize,maximize,close'"
- name: Making Caps Lock an additional CTRL
become: yes
become_user: "{{ username }}"
dconf:
key: "/org/gnome/desktop/input-sources/xkb-options"
value: "['caps:ctrl_modifier']"
- name: Making Alt-Tab keybindings switch windows
become: yes
become_user: "{{ username }}"
dconf:
key: "/org/gnome/desktop/wm/keybindings"
value: '["switch-applications:[]","switch-applications-backward:[]","switch-windows:[''<Alt>Tab'']","switch-windows-backward:[''<Shift><Alt>Tab'']"]'