aboutsummaryrefslogtreecommitdiff
blob: 4cfc23d077c879ccbc91b79daef3f272b3d96313 (plain) (blame)
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
- name: Disable unattended-upgrades
  systemd:
    name: unattended-upgrades
    state: stopped
    enabled: false

- name: Install packages
  apt:
    name:
      - apt-transport-https
      - build-essential
      - ca-certificates
      - cifs-utils
      - vnstat
      - postfix
      - lsb-release
      - python3
      - python3-dev
      - python3-pip
      - unzip
      - gnupg
      - rsync
      - sudo
      - htop
      - curl
      - tree
      - zip
      - vim
      - zsh
      - git
    update_cache: true

- name: Enable bullseye-backport
  apt_repository:
    repo: deb https://deb.debian.org/debian {{ ansible_distribution_release | lower }}-backports main contrib non-free
    state: present

# Check https://wiki.debian.org/ZFS for additional information
- name: Install ZFS
  apt:
    name:
      - linux-headers-{{ ansible_kernel }}
      - zfsutils-linux
      - zfs-dkms
    update_cache: true
    fail_on_autoremove: yes
    default_release: "{{ ansible_distribution_release | lower }}-backports"

- name: Load zfs kernel module
  modprobe:
    name: zfs
    state: present

- name: Clean unneeded packages
  apt:
    autoremove: true
    purge: true

- name: Remove useless packages from the cache
  apt:
    autoclean: yes

- name: Run the equivalent of "apt-get clean" as a separate step
  apt:
    clean: yes
Powered by cgit v1.2.3 (git 2.41.0)