From f989ed90a0ce8fe39500d769b14819e2b335ae48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 24 Feb 2020 20:01:14 +0100 Subject: [PATCH] try this --- tasks/swap.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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