Commit 9695cc65 authored by Chris Croome's avatar Chris Croome

sysctl: not found?!

parent f6c90179
Pipeline #3583 failed with stage
in 6 minutes and 57 seconds
......@@ -13,6 +13,7 @@
- quilt
- mariadb-server
- mariadb-client
- procps
- reprepro
- rsync
state: latest
......@@ -73,8 +74,15 @@
src: templates/sysctl.conf.j2
dest: /etc/sysctl.conf
- name: Check we have sysctl installed
shell: which sysctl
register: php_sysctl
failed_when: "'sysctl' not in php_sysctl.stdout"
- name: fs.file-max set
shell: "sysctl -w fs.file-max={{ php_sockets }}0"
shell: "{{ php_sysctl.stdout }} -w fs.file-max={{ php_sockets }}0"
args:
executable: /bin/bash
- name: Check the fs.file-max variable
command: cat /proc/sys/fs/file-max
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment