mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-01 09:38:12 -03:30
Merge pull request #1888 from chapsuk/issue_1885
Disable swap in vagrant vms
This commit is contained in:
@@ -71,3 +71,9 @@
|
||||
command: ping -c1 {{ access_ip }}
|
||||
when: access_ip is defined
|
||||
ignore_errors: "{{ ignore_assert_errors }}"
|
||||
|
||||
- name: Stop if swap enabled
|
||||
assert:
|
||||
that: ansible_swaptotal_mb == 0
|
||||
when: kubelet_fail_swap_on|default(true)
|
||||
ignore_errors: "{{ ignore_assert_errors }}"
|
||||
|
||||
Reference in New Issue
Block a user