Add swap_enabled toggle for swap setup
This commit is contained in:
@@ -26,7 +26,9 @@
|
||||
mode: "0644"
|
||||
|
||||
- name: Create zram config
|
||||
when: os | lower not in ['debian11', 'rhel8']
|
||||
when:
|
||||
- os | lower not in ['debian11', 'rhel8']
|
||||
- swap_enabled | bool
|
||||
ansible.builtin.copy:
|
||||
dest: /mnt/etc/systemd/zram-generator.conf
|
||||
content: |
|
||||
|
||||
Reference in New Issue
Block a user