Skip to content
Snippets Groups Projects
Commit e32ab7e5 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

style: don't compare var value with empty string

parent 1c64625d
No related branches found
No related tags found
No related merge requests found
Pipeline #2741 passed
......@@ -9,7 +9,7 @@
ansible.builtin.command: swapoff -va
when:
- ansible_hostname is not search("validate")
- swap_active.stdout == ""
- swap_active.stdout | length == 0
register: disable_swap
changed_when: disable_swap.stdout not in "swapoff LABEL=swap"
......@@ -20,4 +20,4 @@
state: "absent"
when:
- ansible_hostname is not search("validate")
- swap_active.stdout == ""
- swap_active.stdout | length == 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment