Commit 44651cf7 authored by nanahira's avatar nanahira

sysctl for xanmod

parent a7ea019f
......@@ -64,11 +64,18 @@
name: net.core.default_qdisc
value: fq
sysctl_set: true
when: ansible_kernel.startswith("5.") or ansible_kernel.startswith("4.9.") or (ansible_kernel.startswith("4.1") and not ansible_kernel.startswith("4.1."))
when: ansible_kernel.startswith("5.") or ansible_kernel.startswith("4.9.") or (ansible_kernel.startswith("4.1") and not ansible_kernel.startswith("4.1.")) and ansible_kernel.find("xanmod") == -1
- name: TCP BBR with xanmod
become: true
sysctl:
name: net.core.default_qdisc
value: fq_pie
sysctl_set: true
when: ansible_kernel.find("xanmod") != -1
- name: TCP BBR
become: true
sysctl:
name: net.ipv4.tcp_congestion_control
value: bbr
sysctl_set: true
when: ansible_kernel.startswith("5.") or ansible_kernel.startswith("4.9.") or (ansible_kernel.startswith("4.1") and not ansible_kernel.startswith("4.1."))
when: ansible_kernel.startswith("5.") or ansible_kernel.startswith("4.9.") or (ansible_kernel.startswith("4.1") and not ansible_kernel.startswith("4.1.")) or ansible_kernel.find("xanmod") != -1
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