-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
87 lines (69 loc) · 1.82 KB
/
site.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
---
- hosts: all
vars:
# Arch's default python is python3
ansible_python_interpreter: "/usr/bin/env python2"
handlers:
- name: locale-regen
command: locale-gen
- name: mkinitcpio
command: mkinitcpio -p linux
notify: mkinitcpio-mainline
- name: mkinitcpio-mainline
command: mkinitcpio -p linux-mainline
args:
removes: /etc/mkinitcpio.d/linux-mainline.preset
roles:
- console
- systemd-boot
- network
- { role: aur, aur_package_name: packer }
- bluetooth
tasks:
- name: Set the correct timezone
file:
src: /usr/share/zoneinfo/Europe/Stockholm
dest: /etc/localtime
state: link
- name: Setup mkinitcpio.conf
template:
src: templates/mkinitcpio.conf.j2
dest: /etc/mkinitcpio.conf
notify: mkinitcpio
- name: Setup makepkg.conf
template:
src: templates/makepkg.conf.j2
dest: /etc/makepkg.conf
- name: Setup modprobe.conf
template:
src: templates/modprobe.conf.j2
dest: /etc/modprobe.d/modprobe.conf
- name: Install packages
pacman: name={{ item }}
with_items:
# For the system
- intel-ucode
- linux-firmware
# For the shell needs
- vim
- pkgfile
- extra/bash-completion
# A DE is nice ...
- gnome
- gnome-extra
- gnome-shell
- gnome-software
# X
- extra/xorg-xinit
#- extra/xf86-video-intel use: xf86-video-intel-git from aur
- core/kmod
- xf86-input-synaptics
- firefox
- terminator
- networkmanager
- name: Start services (now, and on boot)
service: state=started name={{ item }} enabled=yes
with_items:
- gdm
- sshd
- NetworkManager