ansible: 将 TCP 拥塞控制算法切换到 BBR 提取成一个 role

This commit is contained in:
zedhugh committed 2026-10-06 02:42:13 +08:00
1 parent d3dc97ad2b
commit a6f134eada
8 files changed
+68 -7

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
---
- name: 启用 BBR
copy:
dest: /etc/sysctl.d/bbr.conf
content: |
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
mode: '0644'
owner: root
group: root
notify: reload sysctl
- name: 应用 sysctl 配置
command: sysctl --system
changed_when: false