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
-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_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