Merge pull request #277 from yuyicai/dev

fix: 解决Ubuntu 18.04无法安装haproxy、keepalived问题
pull/281/merge
jmgao 2018-08-03 07:29:57 +08:00 committed by GitHub
commit 70bcf6ea88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
- 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|int >= 16
- name: apt安装 haproxy
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
yum: name=haproxy state=latest
@ -22,7 +22,7 @@
- name: apt安装 keepalived
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
yum: name=keepalived state=latest