Skip to content

Commit

Permalink
Update swapoff.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
vtog committed Oct 9, 2018
1 parent d66582d commit 90d9d4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kubernetes/ansible/playbooks/swapoff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
backup: yes
regexp: '(^UUID=.*none.*swap.*)'
replace: '#\1'

- name: Disable swap
command: swapoff -a
when: ansible_swaptotal_mb > 0

0 comments on commit 90d9d4b

Please sign in to comment.