Skip to content

Commit

Permalink
Ignore error in check mode when disabling swap (#6703)
Browse files Browse the repository at this point in the history
  • Loading branch information
floryut authored Sep 18, 2020
1 parent e666fe5 commit b7c4136
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 @@ -16,3 +16,4 @@
- name: Disable swap
command: /sbin/swapoff -a
when: swapon.stdout
ignore_errors: "{{ ansible_check_mode }}"

0 comments on commit b7c4136

Please sign in to comment.