[root@localhost ~]# sysctl -a |grep vm.swappiness vm.swappiness = 30
[root@localhost ~]# ansible-galaxy init sysctl – sysctl was created successfully
[root@localhost ~]# ansible-doc sysctl
[root@localhost ~]# vim test.yml — – hosts: localhost roles: – sysctl vars: sysctl_settings: – name: vm.swappiness value: 90
[root@localhost ~]# vim sysctl/tasks/main.yml — # tasks file for sysctl – name: sysctl settings […]
Recent Comments