Skip to content

Commit 09d3940

Browse files
Merge branch 'master' of github.com:KubeOperator/ansible
2 parents f9b3e3d + 6dbd316 commit 09d3940

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

roles/chrony/tasks/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
ignore_errors: true
66

77
- name: 安装 chrony 相关依赖
8-
package:
9-
name: chrony
8+
yum:
9+
name:
10+
- chrony
1011
state: present
12+
update_cache: yes
1113

1214
- block:
1315
- name: 配置 chrony server

roles/load-balancer/tasks/internal.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
- name: 安装 haproxy
2-
package: name=haproxy state=present
2+
yum:
3+
name:
4+
- haproxy
5+
state: present
6+
update_cache: yes
37

48
- name: 创建 haproxy 配置目录
59
file: name=/etc/haproxy state=directory

0 commit comments

Comments
 (0)