Skip to content

Commit

Permalink
disable swap
Browse files Browse the repository at this point in the history
  • Loading branch information
xinkecf35 committed Nov 17, 2024
1 parent 5af8967 commit 6ab3805
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions ansible/roles/common/tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
state: latest
update_only: true

# Disable Swap, mechanism is different as Fedora uses ZRAM/creates a RAM drive...
# - name: Disable swap immediately
# ansible.builtin.systemd:
# unit: swap-create@zram0
# enabled: false
# state: stopped
# mechanism is different as Fedora uses ZRAM/creates a RAM drive...
- name: Disable swap unit immediately
ansible.builtin.systemd:
unit: "{{ item }}"
enabled: false
state: stopped
loop:
- systemd-zram-setup@zram0
- dev-zram0.swap

- name: Remove ZRAM generator defaults
ansible.builtin.dnf:
Expand Down

0 comments on commit 6ab3805

Please sign in to comment.