-
-
Notifications
You must be signed in to change notification settings - Fork 169
/
Copy pathoptimizations.yml
48 lines (45 loc) · 949 Bytes
/
optimizations.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
- name: ensure services are stopped and disabled for first boot debian build
systemd:
enabled: no
name: '{{ item }}'
state: stopped
with_items:
- postgresql
- pgbouncer
- fail2ban
- motd-news
- vector
- lvm2-monitor
- salt-minion
when: debpkg_mode
- name: ensure services are stopped and disabled for first boot nix build
systemd:
enabled: no
name: '{{ item }}'
state: stopped
with_items:
- postgresql
- pgbouncer
- fail2ban
- motd-news
- vector
- salt-minion
when: stage2_nix
- name: disable man-db
become: yes
file:
state: absent
path: "/etc/cron.daily/{{ item }}"
with_items:
- man-db
- popularity-contest
- ubuntu-advantage-tools
when: debpkg_mode or stage2_nix
- name: prefer IPv4 connection resolution
become: yes
copy:
src: "files/gai.conf"
dest: "/etc/gai.conf"
owner: root
group: root
mode: 0644