mirror of https://github.com/easzlab/kubeasz.git
commit
70bcf6ea88
|
@ -1,10 +1,10 @@
|
||||||
- name: apt更新缓存刷新
|
- name: apt更新缓存刷新
|
||||||
apt: update_cache=yes cache_valid_time=72000
|
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|int >= 16
|
||||||
|
|
||||||
- name: apt安装 haproxy
|
- name: apt安装 haproxy
|
||||||
apt: name=haproxy state=latest
|
apt: name=haproxy state=latest
|
||||||
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "16"
|
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int >= 16
|
||||||
|
|
||||||
- name: yum安装 haproxy
|
- name: yum安装 haproxy
|
||||||
yum: name=haproxy state=latest
|
yum: name=haproxy state=latest
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
- name: apt安装 keepalived
|
- name: apt安装 keepalived
|
||||||
apt: name=keepalived state=latest
|
apt: name=keepalived state=latest
|
||||||
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "16"
|
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int >= 16
|
||||||
|
|
||||||
- name: yum安装 keepalived
|
- name: yum安装 keepalived
|
||||||
yum: name=keepalived state=latest
|
yum: name=keepalived state=latest
|
||||||
|
|
Loading…
Reference in New Issue