diff options
author | clarkzjw <[email protected]> | 2023-01-13 16:53:03 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-01-13 16:53:03 -0800 |
commit | a077d65e5f7f415cc17abeee2264e24957ef97cd (patch) | |
tree | d392e85446a7eb680a8178588f39517c84577825 /clarkzjw.cc/config/atlas/ansible/roles/debian_init/tasks | |
parent | 945aa9e6f634a078937fdf21d09f32e77f4c1a7b (diff) | |
download | homelab-a077d65e5f7f415cc17abeee2264e24957ef97cd.tar.gz |
change domain to clarkzjw.cc
Diffstat (limited to 'clarkzjw.cc/config/atlas/ansible/roles/debian_init/tasks')
-rw-r--r-- | clarkzjw.cc/config/atlas/ansible/roles/debian_init/tasks/main.yaml | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/clarkzjw.cc/config/atlas/ansible/roles/debian_init/tasks/main.yaml b/clarkzjw.cc/config/atlas/ansible/roles/debian_init/tasks/main.yaml new file mode 100644 index 0000000..e53d3eb --- /dev/null +++ b/clarkzjw.cc/config/atlas/ansible/roles/debian_init/tasks/main.yaml | |||
@@ -0,0 +1,66 @@ | |||
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 | - sudo | ||
24 | - htop | ||
25 | - curl | ||
26 | - tree | ||
27 | - zip | ||
28 | - vim | ||
29 | - zsh | ||
30 | - git | ||
31 | update_cache: true | ||
32 | |||
33 | - name: Enable bullseye-backport | ||
34 | apt_repository: | ||
35 | repo: deb https://deb.debian.org/debian {{ ansible_distribution_release | lower }}-backports main contrib non-free | ||
36 | state: present | ||
37 | |||
38 | # Check https://wiki.debian.org/ZFS for additional information | ||
39 | - name: Install ZFS | ||
40 | apt: | ||
41 | name: | ||
42 | - linux-headers-amd64 | ||
43 | - linux-headers-{{ ansible_kernel }} | ||
44 | - zfsutils-linux | ||
45 | - zfs-dkms | ||
46 | update_cache: true | ||
47 | fail_on_autoremove: yes | ||
48 | default_release: "{{ ansible_distribution_release | lower }}-backports" | ||
49 | |||
50 | - name: Load zfs kernel module | ||
51 | modprobe: | ||
52 | name: zfs | ||
53 | state: present | ||
54 | |||
55 | - name: Clean unneeded packages | ||
56 | apt: | ||
57 | autoremove: true | ||
58 | purge: true | ||
59 | |||
60 | - name: Remove useless packages from the cache | ||
61 | apt: | ||
62 | autoclean: yes | ||
63 | |||
64 | - name: Run the equivalent of "apt-get clean" as a separate step | ||
65 | apt: | ||
66 | clean: yes | ||