Commit 79e8c72e authored by nanahira's avatar nanahira

add kernel version detect for bbr

parent 80a274bc
Pipeline #526 passed with stage
in 4 minutes and 27 seconds
......@@ -34,14 +34,14 @@
name: net.core.default_qdisc
value: fq
sysctl_set: true
when: ansible_os_family == 'Debian' or ansible_distribution_major_version|int > 7
when: ansible_kernel.startswith("5.") or ansible_kernel.startswith("4.9.") or (ansible_kernel.startswith("4.1") and not ansible_kernel.startswith("4.1."))
- name: TCP BBR
become: true
sysctl:
name: net.ipv4.tcp_congestion_control
value: bbr
sysctl_set: true
when: ansible_os_family == 'Debian' or ansible_distribution_major_version|int > 7
when: ansible_kernel.startswith("5.") or ansible_kernel.startswith("4.9.") or (ansible_kernel.startswith("4.1") and not ansible_kernel.startswith("4.1."))
- name: limit
become: true
pam_limits:
......
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