diff --git a/roles/prepare/tasks/common.yml b/roles/prepare/tasks/common.yml index c6c3208..3758267 100644 --- a/roles/prepare/tasks/common.yml +++ b/roles/prepare/tasks/common.yml @@ -10,18 +10,6 @@ state: absent backup: 'yes' -- name: 安装基础软件包 - package: - name: - - bash-completion # bash命令补全工具,需要重新登录服务器生效 - - ipset # ipvs 模式需要 - - ipvsadm # ipvs 模式需要 - - psmisc # 安装psmisc 才能使用命令killall,keepalive的监测脚本需要 - - rsync # 文件同步工具,分发证书等配置文件需要 - - socat # 用于port forwarding - state: present - when: 'INSTALL_SOURCE != "offline"' - - name: 加载内核模块 modprobe: name={{ item }} state=present with_items: diff --git a/roles/prepare/tasks/debian.yml b/roles/prepare/tasks/debian.yml index e950358..7642db8 100644 --- a/roles/prepare/tasks/debian.yml +++ b/roles/prepare/tasks/debian.yml @@ -19,10 +19,16 @@ - name: 安装 ubuntu/debian基础软件 package: name: + - bash-completion # bash命令补全工具,需要重新登录服务器生效 - conntrack # network connection cleanup 用到 + - ipset # ipvs 模式需要 + - ipvsadm # ipvs 模式需要 - jq # 轻量JSON处理程序,安装docker查询镜像需要 - libseccomp2 # 安装containerd需要 - nfs-common # 挂载nfs 共享文件需要 (创建基于 nfs的PV 需要) + - psmisc # 安装psmisc 才能使用命令killall,keepalive的监测脚本需要 + - rsync # 文件同步工具,分发证书等配置文件需要 + - socat # 用于port forwarding state: present when: 'INSTALL_SOURCE != "offline"' diff --git a/roles/prepare/tasks/redhat.yml b/roles/prepare/tasks/redhat.yml index 45ba344..d16f738 100644 --- a/roles/prepare/tasks/redhat.yml +++ b/roles/prepare/tasks/redhat.yml @@ -9,10 +9,16 @@ - name: 安装基础软件包 package: - name: + name: + - bash-completion # bash命令补全工具,需要重新登录服务器生效 - conntrack-tools # ipvs 模式需要 + - ipset # ipvs 模式需要 + - ipvsadm # ipvs 模式需要 - libseccomp # 安装containerd需要 - nfs-utils # 挂载nfs 共享文件需要 (创建基于 nfs的PV 需要) + - psmisc # 安装psmisc 才能使用命令killall,keepalive的监测脚本需要 + - rsync # 文件同步工具,分发证书等配置文件需要 + - socat # 用于port forwarding state: present when: 'INSTALL_SOURCE != "offline"'