From 8199aabc380d345d9b1a864cd4b47fedb2cfbd68 Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 12 Feb 2026 21:32:17 +0100 Subject: [PATCH] =?UTF-8?q?refactor=20=E2=99=BB=EF=B8=8F:=20Refactor=20tas?= =?UTF-8?q?k=20to=20use=20`ansible.builtin.command`=20for=20compatibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the task to use `ansible.builtin.command` instead of the deprecated `command` module for better compatibility with newer Ansible versions. --- tasks/swap.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/swap.yml b/tasks/swap.yml index ff80d44..70aee77 100644 --- a/tasks/swap.yml +++ b/tasks/swap.yml @@ -7,7 +7,7 @@ reload: yes - name: swap | Gather active swaps - command: swapon --noheadings --show=NAME + ansible.builtin.command: swapon --noheadings --show=NAME register: active_swaps changed_when: false