Hí Darup, i believe that Brian thougth sysctl module: http://docs.ansible.com/sysctl_module.html
2014-08-28 18:52 GMT+02:00 Darup tek <[email protected]>: > I am currently doing this, want a better one :) > > - name: Changes to sysctl.conf > lineinfile: > dest=/tmp/1 > regexp="{{ item.regexp }}" > line="{{ item.line }}" > with_items: > - { regexp: '^net.ipv6.conf.all.disable_ipv6', line: > 'net.ipv6.conf.all.disable_ipv6 = 1' } > - { regexp: '^net.ipv4.tcp_no_metrics_save', line: > 'net.ipv4.tcp_no_metrics_save = 1' } > - { regexp: '^net.ipv4.tcp_moderate_rcvbuf', line: > 'net.ipv4.tcp_moderate_rcvbuf = 1' } > - { regexp: '^net.ipv4.tcp_fin_timeout', line: > 'net.ipv4.tcp_fin_timeout = 15' } > - { regexp: '^net.ipv4.tcp_keepalive_time', line: > 'net.ipv4.tcp_keepalive_time = 1800' } > - { regexp: '^net.ipv4.tcp_keepalive_probes', line: > 'net.ipv4.tcp_keepalive_probes = 4' } > > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/53caf444-54d6-4e4f-8031-347d1f7e4430%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/53caf444-54d6-4e4f-8031-347d1f7e4430%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- David Karban Specialista na správu linuxových serverů www.karban.eu -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAOBFM97qXy0LQepYBXFEH%2Byq5Dk6beMdMUCd2yUa8pCEKWoM8Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
