diff options
Diffstat (limited to 'clarkzjw.ca/config/atlas/roles/debian_init')
-rw-r--r-- | clarkzjw.ca/config/atlas/roles/debian_init/defaults/main.yaml | 0 | ||||
-rw-r--r-- | clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml | 58 |
2 files changed, 58 insertions, 0 deletions
diff --git a/clarkzjw.ca/config/atlas/roles/debian_init/defaults/main.yaml b/clarkzjw.ca/config/atlas/roles/debian_init/defaults/main.yaml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/clarkzjw.ca/config/atlas/roles/debian_init/defaults/main.yaml | |||
diff --git a/clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml b/clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml new file mode 100644 index 0000000..0eefdef --- /dev/null +++ b/clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml | |||
@@ -0,0 +1,58 @@ | |||
1 | - name: Disable unattended-upgrades | ||
2 | systemd: | ||
3 | name: unattended-upgrades | ||
4 | state: stopped | ||
5 | enabled: false | ||
6 | |||
7 | - name: Install packages | ||
8 | apt: | ||
9 | name: | ||
10 | - apt-transport-https | ||
11 | - build-essential | ||
12 | - ca-certificates | ||
13 | - cifs-utils | ||
14 | - vnstat | ||
15 | - postfix | ||
16 | - lsb-release | ||
17 | - python3 | ||
18 | - python3-dev | ||
19 | - python3-pip | ||
20 | - unzip | ||
21 | - gnupg | ||
22 | - rsync | ||
23 | - htop | ||
24 | - curl | ||
25 | - tree | ||
26 | - zip | ||
27 | - vim | ||
28 | - zsh | ||
29 | - git | ||
30 | update_cache: true | ||
31 | |||
32 | - name: Enable bullseye-backport | ||
33 | apt_repository: | ||
34 | repo: deb https://deb.debian.org/debian {{ ansible_distribution_release | lower }}-backports main contrib non-free | ||
35 | state: present | ||
36 | |||
37 | # Check https://wiki.debian.org/ZFS for additional information | ||
38 | - name: Install ZFS | ||
39 | apt: | ||
40 | name: | ||
41 | - linux-headers-amd64 | ||
42 | - zfsutils-linux | ||
43 | update_cache: true | ||
44 | fail_on_autoremove: yes | ||
45 | default_release: "{{ ansible_distribution_release | lower }}-backports" | ||
46 | |||
47 | - name: Clean unneeded packages | ||
48 | apt: | ||
49 | autoremove: true | ||
50 | purge: true | ||
51 | |||
52 | - name: Remove useless packages from the cache | ||
53 | apt: | ||
54 | autoclean: yes | ||
55 | |||
56 | - name: Run the equivalent of "apt-get clean" as a separate step | ||
57 | apt: | ||
58 | clean: yes | ||