mirror of https://github.com/easzlab/kubeasz.git
30 lines
760 B
YAML
30 lines
760 B
YAML
# 系统基础软件环境
|
|
- import_tasks: debian.yml
|
|
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Debian"
|
|
|
|
- import_tasks: centos.yml
|
|
when: ansible_distribution == "CentOS" or ansible_distribution == "RedHat"
|
|
|
|
# 公共系统参数设置
|
|
- import_tasks: common.yml
|
|
|
|
- name: prepare some dirs
|
|
file: name={{ item }} state=directory
|
|
with_items:
|
|
- "{{ bin_dir }}"
|
|
- "{{ ca_dir }}"
|
|
|
|
- name: 分发证书工具 CFSSL
|
|
copy: src={{ base_dir }}/bin/{{ item }} dest={{ bin_dir }}/{{ item }} mode=0755
|
|
with_items:
|
|
- cfssl
|
|
- cfssl-certinfo
|
|
- cfssljson
|
|
|
|
- name: 写入环境变量$PATH
|
|
lineinfile:
|
|
dest: ~/.bashrc
|
|
state: present
|
|
regexp: 'kubeasz'
|
|
line: 'export PATH={{ bin_dir }}:$PATH # generated by kubeasz'
|