Commit 76b94485 authored by Rafael Monnerat's avatar Rafael Monnerat

playbook: Include sysctl and modprobes

/reviewed-on !20
parent ab79c235
......@@ -3,6 +3,8 @@
stat: path=/etc/re6stnet/re6stnet.conf
register: re6stnet_conf
- include: sysctl.yml
- name: Configure Re6st with re6st-conf
shell: "re6st-conf --registry {{ re6st_registry_url }} --token {{ re6sttoken }} -r title {{ computer_name }} -d /etc/re6stnet"
when: re6st_annon == False and re6stnet_conf.stat.exists == False and "{{ re6sttoken }}" != "notoken" and "{{ computer_name }}" != "noname"
......
---
- sysctl: name="net.ipv6.conf.all.disable_ipv6" value=0 sysctl_set=yes state=present reload=yes
---
- modprobe: name=kvm_intel state=present
ignore_errors: True
- pause: seconds=2
- stat: path=/dev/kvm
register: dev_kvm
- name: Set 666 on /dev/kvm
shell: chmod 666 /dev/kvm
when: dev_kvm.stat.exists == True
---
- name: Set kernel.panic for force reboot after kernel panic
sysctl: name="kernel.panic" value=120 sysctl_set=yes state=present reload=yes
- name: Set fs.aio-max-nr for increase default aio-max-nr for sql servers
sysctl: name="fs.aio-max-nr" value=16777216 sysctl_set=yes state=present reload=yes
- name: Set kernel.sem for increase semaphore limits
sysctl: name="kernel.sem" value="1250 256000 100 1024" sysctl_set=yes state=present reload=yes
- sysctl: name="net.ipv4.neigh.default.gc_thresh1" value=512 sysctl_set=yes state=present reload=yes
- sysctl: name="net.ipv4.neigh.default.gc_thresh2" value=1024 sysctl_set=yes state=present reload=yes
- sysctl: name="net.ipv4.neigh.default.gc_thresh3" value=2048 sysctl_set=yes state=present reload=yes
- sysctl: name="net.ipv6.neigh.default.gc_thresh1" value=512 sysctl_set=yes state=present reload=yes
- sysctl: name="net.ipv6.neigh.default.gc_thresh2" value=1024 sysctl_set=yes state=present reload=yes
- sysctl: name="net.ipv6.neigh.default.gc_thresh3" value=2048 sysctl_set=yes state=present reload=yes
- include: kvm.yml
- include: shuttle-modprobe.yml
- name: Include table 0 on re6st
shell: echo "TODO"
- name: interface on re6st
shell: echo "TODO"
- name: Load kvm_intel
shell: echo "TODO if machine has support."
- name: Set 666 on /dev/kvm
shell: echo "TODO if machine has support."
- name: Increase ulimit
shell: echo "TODO"
---
- modprobe: name=acpi_cpufreq state=present
ignore_errors: True
- modprobe: name=coretemp state=present
ignore_errors: True
- modprobe: name=f71882fg state=present
ignore_errors: True
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