mirror of https://github.com/easzlab/kubeasz.git
small fix
parent
2c8d59abcd
commit
f62454199f
|
@ -32,12 +32,12 @@
|
|||
## 可选 ------安装docker查询镜像 tag的小工具----
|
||||
- name: 安装轻量JSON处理程序
|
||||
apt: name=jq state=latest
|
||||
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version = "16"
|
||||
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "16"
|
||||
tags: docker-tag
|
||||
|
||||
- name: 安装轻量JSON处理程序
|
||||
yum: name=jq state=latest
|
||||
when: ansible_distribution == "CentOS" and ansible_distribution_major_version = "7"
|
||||
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
|
||||
tags: docker-tag
|
||||
|
||||
- name: 下载 docker-tag
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
#
|
||||
- name: apt更新缓存刷新
|
||||
apt: update_cache=yes cache_valid_time=72000
|
||||
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version = "16"
|
||||
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "16"
|
||||
|
||||
- name: 安装 haproxy using apt
|
||||
apt: name=haproxy state=latest
|
||||
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version = "16"
|
||||
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "16"
|
||||
|
||||
- name: 安装 haproxy using yum
|
||||
yum: name=haproxy state=latest
|
||||
when: ansible_distribution == "CentOS" and ansible_distribution_major_version = "7"
|
||||
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
|
||||
|
||||
- name: 创建haproxy配置目录
|
||||
file: name=/etc/haproxy state=directory
|
||||
|
@ -19,11 +19,11 @@
|
|||
|
||||
- name: 安装 keepalived using apt
|
||||
apt: name=keepalived state=latest
|
||||
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version = "16"
|
||||
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "16"
|
||||
|
||||
- name: 安装 keepalived using yum
|
||||
yum: name=keepalived state=latest
|
||||
when: ansible_distribution == "CentOS" and ansible_distribution_major_version = "7"
|
||||
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
|
||||
|
||||
- name: 创建keepalived配置目录
|
||||
file: name=/etc/keepalived state=directory
|
||||
|
|
Loading…
Reference in New Issue