Skip to content

Instantly share code, notes, and snippets.

@hiteshjasani
hiteshjasani / sysctl.yml
Created November 22, 2016 17:16 — forked from jkordish/sysctl.yml
ansible sysctl for ec2. perferrably used for 1g nics.
- hosts: localhost
tasks:
- name: update sysctl
action: sysctl state=present reload=yes {{ item }}
with_items:
# max open files
- name=fs.file-max value=65535
# lets not use swap.
- name=vm.swappiness value=0
# enable syn coockies. this can actually cause overhead.