If the server already have swap space your playbook creates anyway the file /swapfile.
I have modified swap.yml: now we check the variable ansible_swaptotal_mb before creating the swapfile
@zach-adams I think this is an important feature since there are probably a lot of people running this on a VPS, which in most cases already come with swap. @2autunni Good job, cloning your repo now :smile:
If the server already have swap space your playbook creates anyway the file /swapfile. I have modified swap.yml: now we check the variable ansible_swaptotal_mb before creating the swapfile