From 992b889d02825f6acc14c0b016b56196685209e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 24 Feb 2020 19:41:27 +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 8fb49a2009..b1cb76226b 100644 --- a/tasks/swap.yml +++ b/tasks/swap.yml @@ -51,7 +51,7 @@ - name: Mount swap command: "swapon {{ swap_file_path }}" - when: ansible_swaptotal_mb < 1 + when: ansible_facts['ansible_swaptotal_mb'] < 1 tags: - swap.file.swapon - swap