mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-07-02 15:53:06 +02:00
111
This commit is contained in:
26
playbooks/raspberrypi5_setup.yaml
Normal file
26
playbooks/raspberrypi5_setup.yaml
Normal 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']
|
||||
|
||||
|
Reference in New Issue
Block a user