geerlingguy / ansible-role-kubernetes

Ansible Role - Kubernetes
https://galaxy.ansible.com/geerlingguy/kubernetes/
MIT License
554 stars 268 forks source link

Swap is not removed in the role #21

Closed rodrigobrim closed 6 years ago

rodrigobrim commented 6 years ago

Hello Jeff. I'm continuing my saga 🗡

Now, I've noticed that the role don't remove the swap, so the playbook fails when deploying the flannel.

Thank you for the support.

geerlingguy commented 6 years ago

There's a role for thatâ„¢

https://github.com/geerlingguy/ansible-role-swap

See, for example, how I use that role in my Raspberry Pi Dramble project.

This role assumes you have either already taken care of swap disabling in your playbook or on your servers, or you have the --fail-swap-on=false option in your kubernetes settings so it ignores swap being present.