This commit is contained in:
jaydee
2023-12-05 17:35:50 +01:00
parent 9a203c242e
commit 6ef97997fa
2 changed files with 98 additions and 0 deletions

View File

@ -0,0 +1,26 @@
- hosts: containers
name: Sync mailu
ignore_unreachable: false
tasks:
- name: Stop swap
ansible.builtin.shell: 'dphys-swapfile swapoff'
become: true
when: inventory_hostname in groups['raspberrypi5']
- name: Reconfigure swap size
ansible.builtin.lineinfile:
path: /etc/dphys-swapfile
regexp: "^CONF_SWAPSIZE=.*"
line: "CONF_SWAPSIZE=2048"
become: true
when: inventory_hostname in groups['raspberrypi5']
- name: Start swap
ansible.builtin.shell: 'dphys-swapfile swapon'
become: true
when: inventory_hostname in groups['raspberrypi5']
- name: Disable wayland for vnc
ansible.builtin.shell: 'raspi-config nonint do_wayland W1'
become: true
when: inventory_hostname in groups['raspberrypi5']