Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
01-base.yml 637 Bytes
Copy Edit Raw Blame History
setzero authored 2021-05-12 09:54 . [IMP]优化脚本默认值获取
# 所有节点安装基础组件并加载所需内核模块
- 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/base
environment: "{{ proxy_env }}"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化