mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Replace swap vars with single kubelet_fail_swap_on (#10036)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
name: "{{ item }}"
|
||||
fstype: swap
|
||||
state: absent
|
||||
with_items:
|
||||
loop:
|
||||
- swap
|
||||
- none
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
command: /sbin/swapoff -a
|
||||
when:
|
||||
- swapon.stdout
|
||||
- kubelet_fail_swap_on | default(True)
|
||||
ignore_errors: "{{ ansible_check_mode }}" # noqa ignore-errors
|
||||
|
||||
- name: Disable swapOnZram for Fedora
|
||||
@@ -26,4 +25,3 @@
|
||||
when:
|
||||
- swapon.stdout
|
||||
- ansible_distribution in ['Fedora']
|
||||
- kubelet_fail_swap_on | default(True)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
- import_tasks: 0010-swapoff.yml
|
||||
when:
|
||||
- not dns_late
|
||||
- disable_swap
|
||||
- kubelet_fail_swap_on
|
||||
|
||||
- import_tasks: 0020-set_facts.yml
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user