From 1c2cfed97abd77ebcbb28bd129fb09d5f517735a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 24 Feb 2020 20:13:47 +0100 Subject: [PATCH] Revert "try this" This reverts commit 68ff759fc4ec7bab9d305635bb37efba04efbbec. --- tasks/swap.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tasks/swap.yml b/tasks/swap.yml index 0a6104f7ec..b47d986ec7 100644 --- a/tasks/swap.yml +++ b/tasks/swap.yml @@ -44,7 +44,14 @@ opts=sw passno=0 dump=0 - state=mounted + state=present tags: - swap.fstab - swap + +- name: Mount swap + command: "swapon {{ swap_file_path }}" + when: ansible_swaptotal_mb|int < 1 + tags: + - swap.file.swapon + - swap