disalbe swap via CLI

Hi guys,

I am looking for a way to disable the swapfile via CLI, in short, I am in the process of learning ansible, docker and Kubernetes. Kubernetes requires the swapfile to be disabled in order to work correctly and as i am using ansible to provision the devices via automated commands I require an alternative method than SSH GUI provided.

most Kubernetes guides online suggest running dphys-swapfile swapoff but this does not seem to be working.

Thank you in advance for any help, it is much appreciated.

/DietPi/dietpi/func/dietpi-set_swapfile 0 :slight_smile: