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

+13
View File
@@ -0,0 +1,13 @@
---
- name: 开机加载 tcp_bbr 模块
copy:
dest: /etc/modules-load.d/bbr.conf
content: "tcp_bbr\n"
mode: '0644'
owner: root
group: root
- name: 立即加载 tcp_bbr 模块
modprobe:
name: tcp_bbr
state: present