Skip to main content

Instead of running shell commands, use the sysctl module.

If possible, avoid using shell.

- ansible.posix.sysctl:
    name: vm.swappiness
    value: '10'
    state: present

Instead of running shell commands, use the sysctl module.

If possible, avoid using shell.

- sysctl:
    name: vm.swappiness
    value: '10'
    state: present

Instead of running shell commands, use the sysctl module.

If possible, avoid using shell.

- ansible.posix.sysctl:
    name: vm.swappiness
    value: '10'
    state: present
Source Link
Panki
  • 7.2k
  • 3
  • 28
  • 37

Instead of running shell commands, use the sysctl module.

If possible, avoid using shell.

- sysctl:
    name: vm.swappiness
    value: '10'
    state: present