revert: do not disable swap entirely

This commit is contained in:
mustard 2026-01-03 22:44:48 +01:00
parent 958c761143
commit cac04c0996

View file

@ -196,22 +196,6 @@
# line: '\1&protocol=https' # line: '\1&protocol=https'
# loop: '{{ found_files.files }}' # loop: '{{ found_files.files }}'
- name: 'Disable non zram swap'
ansible.builtin.command:
cmd: 'swapoff /dev/xvdc1'
changed_when: true
- name: 'Remove swap partition from /etc/fstab'
ansible.builtin.lineinfile:
search_string: '/dev/xvdc1'
path: '/etc/fstab'
state: 'absent'
- name: 'Update grub and initramfs'
ansible.builtin.command:
cmd: 'update-grub && update-initramfs -u'
changed_when: true
- name: 'Install zram' - name: 'Install zram'
ansible.builtin.dnf5: ansible.builtin.dnf5:
name: name: