- name: Disable SWAP sysctl on host ansible.posix.sysctl: name: vm.swappiness value: "0" state: present - name: Disable SWAP on host ansible.builtin.command: swapoff -a - name: Remove swapfile from /etc/fstab on host ansible.posix.mount: name: "{{ item }}" fstype: swap state: absent with_items: - swap - name: Place script to grab certificate from Proxmox ansible.builtin.template: src: get_cert.sh.j2 dest: "/root/get_cert.sh" mode: "0760"