- name: Install zram-tools if needed ansible.builtin.package: name: zram-tools - name: Enable zramswap service ansible.builtin.systemd: name: zramswap enabled: yes masked: no