2019-01-03 20:21:39 +08:00
|
|
|
|
- name: 删除centos/redhat默认安装
|
2018-10-09 15:37:07 +08:00
|
|
|
|
yum:
|
|
|
|
|
name:
|
|
|
|
|
- firewalld
|
|
|
|
|
- python-firewall
|
|
|
|
|
- firewalld-filesystem
|
|
|
|
|
state: absent
|
2018-09-02 14:08:51 +08:00
|
|
|
|
|
|
|
|
|
- name: 添加EPEL仓库
|
|
|
|
|
yum: name=epel-release state=latest
|
|
|
|
|
|
|
|
|
|
- name: 安装基础软件包
|
2018-10-09 15:37:07 +08:00
|
|
|
|
yum:
|
|
|
|
|
name:
|
2018-10-16 09:18:32 +08:00
|
|
|
|
- conntrack-tools # ipvs 模式需要
|
2018-10-09 15:37:07 +08:00
|
|
|
|
- psmisc # 安装psmisc 才能使用命令killall,它在keepalive的监测脚本中使用到
|
|
|
|
|
- nfs-utils # 挂载nfs 共享文件需要 (创建基于 nfs的PV 需要)
|
|
|
|
|
- jq # 轻量JSON处理程序,安装docker查询镜像需要
|
|
|
|
|
- socat # 用于port forwarding
|
|
|
|
|
- bash-completion # bash命令补全工具,需要重新登录服务器生效
|
|
|
|
|
- rsync # 文件同步工具,分发证书等配置文件需要
|
|
|
|
|
- ipset
|
|
|
|
|
- ipvsadm
|
|
|
|
|
state: latest
|
2018-09-02 14:08:51 +08:00
|
|
|
|
|
|
|
|
|
- name: 临时关闭 selinux
|
|
|
|
|
shell: "setenforce 0"
|
|
|
|
|
failed_when: false
|
|
|
|
|
|
|
|
|
|
- name: 永久关闭 selinux
|
|
|
|
|
lineinfile:
|
|
|
|
|
dest: /etc/selinux/config
|
|
|
|
|
regexp: "^SELINUX="
|
|
|
|
|
line: "SELINUX=disabled"
|
|
|
|
|
|
|
|
|
|
- name: 设置 Centos ulimits
|
2018-09-02 15:07:58 +08:00
|
|
|
|
template: src=30-kubeasz.conf.j2 dest=/etc/security/limits.d/30-kubeasz.conf
|