Skip to main content
1 of 2
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
Panki
  • 7.2k
  • 3
  • 28
  • 37