refactor ♻️: Refactor task to use ansible.builtin.command for compatibility
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:
@@ -7,7 +7,7 @@
|
|||||||
reload: yes
|
reload: yes
|
||||||
|
|
||||||
- name: swap | Gather active swaps
|
- name: swap | Gather active swaps
|
||||||
command: swapon --noheadings --show=NAME
|
ansible.builtin.command: swapon --noheadings --show=NAME
|
||||||
register: active_swaps
|
register: active_swaps
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user