From 10a8312ee7d1c398b6c2117dc41c80cbdd5e3827 Mon Sep 17 00:00:00 2001 From: Miroslav Suchý Date: Feb 24 2020 18:41:27 +0000 Subject: try this --- diff --git a/tasks/swap.yml b/tasks/swap.yml index 8fb49a2..b1cb762 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