-
Notifications
You must be signed in to change notification settings - Fork 0
/
system_base.yml
103 lines (89 loc) · 2.72 KB
/
system_base.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
- hosts: localhost
vars_files:
- config.yml
tasks:
- name: Allow Debian Unstable & Experimental packages only on demand
copy:
dest: /etc/apt/preferences.d/pins
# That empty line makes or breaks the pins
content: |
Package: *
Pin: release a=unstable
Pin-Priority: 400
Package: *
Pin: release a=experimental
Pin-Priority: 400
- name: Debian Unstable repo
apt_repository:
repo: deb http://ftp.icm.edu.pl/pub/Linux/debian unstable main non-free non-free-firmware contrib
- name: Debian Experimental repo
apt_repository:
repo: deb http://ftp.icm.edu.pl/pub/Linux/debian experimental main non-free non-free-firmware contrib
- name: Install base system packages
apt:
pkg:
# Base
- linux-image-amd64
- linux-headers-amd64
- iw # wifi
- network-manager # wifi
- rcm # dotfiles
- cups # printer
# Desktop software
- gnome-core
- gnome-tweaks
- gnome-shell-extensions
- gnome-shell-extension-manager
- foliate
- gimp
- keepassx
# Themes
- yaru-theme-gnome-shell
- yaru-theme-gtk
- papirus-icon-theme
- breeze-cursor-theme
# Fonts
- fonts-ubuntu
- fonts-paratype # PT Sans / PT Serif
- fonts-lato
- fonts-crosextra-caladea
- fonts-crosextra-carlito
- fonts-jetbrains-mono
- fonts-firacode
- fonts-inconsolata
- name: Configure users
with_items: "{{ users }}"
user:
name: "{{ item }}"
state: present
groups:
- sudo
- lp
- lpadmin
- name: Hardware clock in local time
command: /usr/bin/timedatectl set-local-rtc 1
- name: Locales - generate
locale_gen:
name: "{{ item }}"
state: present
loop: "{{ locale_to_generate }}"
- name: Locales - setup
copy:
dest: /etc/default/locale
content: |
LANG={{ locale_lang }}
LC_TIME={{ locale_time }}
- name: Chrome - setup apt key
apt_key:
url: https://dl-ssl.google.com/linux/linux_signing_key.pub
state: present
- name: Chrome - setup apt repository
apt_repository:
repo: deb http://dl.google.com/linux/chrome/deb/ stable main
- name: Chrome - install
apt:
pkg: google-chrome-stable
- name: Sysctl settings
# Necessary for IDEs and editors (intellij etc.),
# which use inotify to watch filesystem changes
sysctl: name=fs.inotify.max_user_watches value=524288