From d625cee350b3f38f8bd639a590a26d2cb7adad0a Mon Sep 17 00:00:00 2001 From: Christoph Gerneth Date: Thu, 27 Nov 2025 12:12:10 +0100 Subject: [PATCH] fix: do not fail on ansible check mode --- tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/main.yml b/tasks/main.yml index 059e4e3..0f78439 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -35,6 +35,7 @@ mode: '0600' tags: - swapfile-set-file-permissions + when: not ansible_check_mode - name: create swap file # noqa command-instead-of-module ansible.builtin.command: >