-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
85 lines (67 loc) · 1.75 KB
/
main.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
---
- hosts: all
gather_subset:
- distribution
- hardware
vars_files:
- vars/users.yml
handlers:
- name: restart-sshd
service:
name: sshd
state: restarted
- name: restart-libvirtd
service:
name: libvirtd
state: restarted
- name: restart-journald
service:
name: systemd-journald
state: restarted
- name: update-grub
command: grub2-mkconfig -o /boot/grub2/grub.cfg
- name: reboot-machine
reboot:
tasks:
- name: Repos
include_tasks: tasks/repos.yml
- name: Packages
include_tasks: tasks/packages.yml
- name: Services
include_tasks: tasks/services.yml
- name: System configuration
include_tasks: tasks/system_configuration.yml
- name: User
include_tasks: tasks/user.yml
- name: User configuration
become: true
become_user: '{{ user.username }}'
block:
- name: Create ~/bin
file:
dest: '/home/{{ user.username }}/bin'
state: directory
- name: neovim
include_tasks: tasks/nvim.yml
- name: git
include_tasks: tasks/git.yml
tags: devel
- name: scripts
include_tasks: tasks/user_scripts.yml
tags:
- devel
- workstation
# - name: GTK
# include_tasks: tasks/gtk.yml
# tags: workstation
- name: Firefox
include_tasks: tasks/firefox.yml
tags: workstation
- name: Dconf
include_tasks: tasks/dconf.yml
tags: workstation
- name: Flatpak
include_tasks: tasks/flatpak.yml
tags: workstation
- name: Final cleanup
include_tasks: tasks/cleanup.yml