Skip to content

Commit

Permalink
Ignore error in check mode when disabling swap (kubernetes-sigs#6703)
Browse files Browse the repository at this point in the history
  • Loading branch information
floryut authored and LuckySB committed Jan 16, 2021
1 parent 1a1b0e9 commit 403e3a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/kubernetes/preinstall/tasks/0010-swapoff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
- name: Disable swap
command: /sbin/swapoff -a
when: swapon.stdout
ignore_errors: "{{ ansible_check_mode }}"

0 comments on commit 403e3a9

Please sign in to comment.