refactor ♻️: Refactor task to use ansible.builtin.command for compatibility
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 11s
Gitleaks Scan / gitleaks (push) Successful in 4s
Markdown Lint / markdown-lint (push) Successful in 5s

Updated the task to use `ansible.builtin.command` instead of the deprecated `command` module for better compatibility with newer Ansible versions.
This commit is contained in:
2026-02-12 21:32:17 +01:00
parent 3be8cd10be
commit 8199aabc38

View File

@@ -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