1 Star 0 Fork 0

Ai智能云 / kubeadm-ha-init

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
02-container-engine.yml 617 Bytes
一键复制 编辑 原始数据 按行查看 历史
root 提交于 2022-05-23 19:20 . kubeadm-ha
# 所有节点安装 Docker
- hosts: all
gather_facts: false
tasks:
- name: "设置代理服务器环境变量"
set_fact:
proxy_env:
http_proxy: "{{ http_proxy | default ('') }}"
HTTP_PROXY: "{{ http_proxy | default ('') }}"
https_proxy: "{{ https_proxy | default ('') }}"
HTTPS_PROXY: "{{ https_proxy | default ('') }}"
no_proxy: "{{ no_proxy | default ('') }}"
NO_PROXY: "{{ no_proxy | default ('') }}"
no_log: true
- hosts:
- all
roles:
- prepare/variables
- prepare/container-engine
environment: "{{ proxy_env }}"
Shell
1
https://gitee.com/hexin1136/kubeadm-ha.git
git@gitee.com:hexin1136/kubeadm-ha.git
hexin1136
kubeadm-ha
kubeadm-ha-init
master

搜索帮助