-
Notifications
You must be signed in to change notification settings - Fork 3
/
playbook.yml
executable file
·198 lines (164 loc) · 2.73 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
186
187
188
189
190
191
192
193
194
195
196
197
198
---
#
# Ensure user_id is defined
#
- hosts: all
tasks:
- name: Assert that user_id is defined when running as root
assert:
msg: 'user_id must be defined when running as root (missing --extra-vars "user_id=USER"?)'
that:
- user_id is defined
when: ansible_facts['user_id'] == "root"
- name: Register user_id
set_fact:
user_id: "{{ ansible_user_id }}"
when: ansible_facts['user_id'] != "root"
tags: always
#
# Generate mirrorlist
#
- hosts: all
roles: [ mirrorlist ]
tags: always
#
# Create main user and aur_builder
#
- hosts: all
tasks:
- import_role:
name: user
when: ansible_facts['user_id'] == "root"
- name: Get user home directory
changed_when: false
register: getent
shell: "getent passwd {{ user_id }} | awk -F: '{ print $6 }'"
- name: Register user_id
set_fact:
user_home: "{{ getent.stdout }}"
- user:
group: wheel
name: aur_builder
system: yes
tags: always
#
# Set up sudo so aur_builder can run pacman without password
#
- hosts: all
roles: [ sudo ]
tags: always
#
# Install roles
#
- hosts: all
roles: [ alacritty ]
tags:
- alacritty
- desktop
- hosts: all
roles: [ bspwm ]
tags:
- bspwm
- desktop
- hosts: all
roles: [ chromium ]
tags:
- chromium
- desktop
- hosts: all
roles: [ cht-sh ]
tags: cht-sh
- hosts: all
roles: [ cli-utilities ]
tags: cli-utilities
- hosts: all
roles: [ cursor ]
tags:
- cursor
- desktop
- hosts: all
roles: [ dunst ]
tags:
- desktop
- dunst
- hosts: all
roles: [ fonts ]
tags:
- desktop
- fonts
- hosts: all
roles: [ gtk ]
tags:
- desktop
- gtk
- hosts: all
roles: [ lastpass ]
tags:
- lastpass
- hosts: all
roles: [ lightdm ]
tags:
- desktop
- lightdm
- hosts: all
roles: [ neofetch ]
tags: neofetch
- hosts: all
roles: [ neovim ]
tags: neovim
- hosts: all
roles: [ picom ]
tags:
- desktop
- picom
- hosts: all
roles: [ polybar ]
tags:
- desktop
- polybar
- hosts: all
roles: [ qutebrowser ]
tags:
- qutebrowser
- hosts: all
roles: [ rofi ]
tags:
- desktop
- rofi
- hosts: all
roles: [ sound ]
tags:
- desktop
- sound
- hosts: all
roles: [ spotify ]
tags: spotify
- hosts: all
roles: [ sxhkd ]
tags:
- desktop
- sxhkd
- hosts: all
roles: [ vifm ]
tags: vifm
- hosts: all
roles: [ vscode ]
tags: vscode
- hosts: all
roles: [ xdg-user-dirs ]
tags:
- desktop
- xdg-user-dirs
- hosts: all
roles: [ xorg ]
tags:
- desktop
- xorg
- hosts: all
roles: [ zathura ]
tags:
- zathura
- hosts: all
roles: [ zsh ]
tags:
- zsh