File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 180180 - (debpkg_mode or nixpkg_mode)
181181 block :
182182 # Set Sysctl params for restarting the OS on OOM after 10
183- - name : Set vm.panic_on_oom=1
184- ansible.builtin.sysctl :
185- name : ' vm.panic_on_oom'
186- reload : true
187- state : ' present'
188- value : ' 1'
189-
190183 - name : Set kernel.panic=10
191184 ansible.builtin.sysctl :
192185 name : ' kernel.panic'
Original file line number Diff line number Diff line change 111111 state : ' present'
112112 value : 10
113113
114+
115+ - name : tuned - Set panic_on_oom
116+ become : true
117+ community.general.ini_file :
118+ create : true
119+ group : ' root'
120+ mode : ' 0644'
121+ no_extra_spaces : true
122+ option : ' vm.panic_on_oom'
123+ path : ' /etc/tuned/profiles/postgresql/tuned.conf'
124+ section : ' sysctl'
125+ state : ' present'
126+ value : 1
127+ when :
128+ - (debpkg_mode or nixpkg_mode)
114129 - name : tuned - Load zstd compressor module
115130 become : true
116131 community.general.modprobe :
You can’t perform that action at this time.
0 commit comments