关闭centos selinux

pull/29/head
jmgao 2017-12-15 17:27:56 +08:00
parent a37ce501e0
commit 1ba3b72539
2 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,7 @@
- kube-cluster - kube-cluster
- deploy - deploy
- etcd - etcd
- lb
roles: roles:
- prepare - prepare

View File

@ -27,3 +27,11 @@
- ca-key.pem - ca-key.pem
- ca.csr - ca.csr
- ca-config.json - ca-config.json
# 先拉取下节点的ansible setup信息起到缓存效果否则后续when 判断可能失败
- name: 缓存ansilbe setup信息
setup: gather_subset=min
- name: 关闭 selinux
shell: "setenforce 0 && echo SELINUX=disabled > /etc/selinux/config"
when: ansible_distribution == "CentOS"