diff --git a/tasks/swap.yml b/tasks/swap.yml index b1cb76226b..b47d986ec7 100644 --- a/tasks/swap.yml +++ b/tasks/swap.yml @@ -51,7 +51,7 @@ - name: Mount swap command: "swapon {{ swap_file_path }}" - when: ansible_facts['ansible_swaptotal_mb'] < 1 + when: ansible_swaptotal_mb|int < 1 tags: - swap.file.swapon - swap