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 @@ ...@@ -34,14 +34,14 @@
name: net.core.default_qdisc name: net.core.default_qdisc
value: fq value: fq
sysctl_set: true 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 - name: TCP BBR
become: true become: true
sysctl: sysctl:
name: net.ipv4.tcp_congestion_control name: net.ipv4.tcp_congestion_control
value: bbr value: bbr
sysctl_set: true 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 - name: limit
become: true become: true
pam_limits: 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