net.ipv6.conf.all.disable_ipv6=1
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_moderate_rcvbuf = 1
net.ipv4.tcp_fin_timeout = 15
net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_keepalive_probes = 4
I am adding these using several lineinfile:
What is the best way to knock it down with one module
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/53caf444-54d6-4e4f-8031-347d1f7e4430%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
- hosts: all sudo: yes roles: - yaegashi.blockinfile tasks: - name: Update sysctl.conf blockinfile: | dest=/etc/sysctl.conf backup=yes content='net.ipv6.conf.all.disable_ipv6=1
net.ipv4.tcp_no_metrics_save = 1 net.ipv4.tcp_moderate_rcvbuf = 1 net.ipv4.tcp_fin_timeout = 15 net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_keepalive_probes = 4' notify: Reload sysctl handlers: - name: Reload sysctl.conf shell: sysctl -p