-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproxmox.yml
41 lines (33 loc) · 1.05 KB
/
proxmox.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
---
- name: Configure Proxmox for services
hosts: pve
vars_files:
- vars.yml
- private-vars.yml
roles:
- role: tychobrouwer.ssh
- role: tychobrouwer.git
- role: tychobrouwer.proxmox
proxmox_pbs_client_directories:
- file-share.pxar:/media/file-share
- lxc-config.pxar:/etc/pve/lxc
proxmox_pbs_repository: backup@[email protected]:main
proxmox_backup_hours: "2,8,17,22"
tasks:
- name: Set timezone
ansible.builtin.command: timedatectl set-timezone Europe/Amsterdam
changed_when: false
- name: Add kernel cmd fixes for random crashes
ansible.builtin.lineinfile:
path: /etc/kernel/cmdline
backrefs: true
regexp: "^root=(?!.*idle).*$"
line: '\1 idle=nomwait processor.max_cstate=5'
- name: Remove arc cache limit
ansible.builtin.file:
path: /etc/modprobe.d/zfs.conf
state: absent
register: zfs_conf
- name: Rebuild initramfs
ansible.builtin.command: update-initramfs -u -k all
when: zfs_conf.changed