Update loadbalancer deployment
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
a16013a8a1
commit
cfa8180c18
1 changed files with 6 additions and 4 deletions
|
|
@ -1,12 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: Install needed packages
|
- name: Install needed packages
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
|
- keepalived
|
||||||
|
- curl
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
with_items:
|
|
||||||
- keepalived
|
|
||||||
- curl
|
|
||||||
notify: Restart keepalived
|
notify: Restart keepalived
|
||||||
- name: Install check_apiserver.sh script for keepalived
|
- name: Install check_apiserver.sh script for keepalived
|
||||||
template:
|
template:
|
||||||
|
|
@ -39,3 +38,6 @@
|
||||||
when:
|
when:
|
||||||
- not groups['KubernetesMasters'][0] == ansible_hostname
|
- not groups['KubernetesMasters'][0] == ansible_hostname
|
||||||
notify: Restart keepalived
|
notify: Restart keepalived
|
||||||
|
|
||||||
|
- name: Flush handlers
|
||||||
|
meta: flush_handlers
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue