This commit is contained in:
parent
7689947af5
commit
7d2f8a3b00
1 changed files with 9 additions and 0 deletions
|
|
@ -12,10 +12,16 @@
|
|||
template:
|
||||
src: etc/keepalived/check_apiserver.sh.j2
|
||||
dest: /etc/keepalived/check_apiserver.sh
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
- name: Install keepalived config file
|
||||
template:
|
||||
src: etc/keepalived/keepalived.conf.j2
|
||||
dest: /etc/keepalived/keepalived.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
with_items:
|
||||
- { lbip: '{{ lbip_kubeapiserver }}', state: "MASTER", interface: '{{ lb_interface }}', auth_pass: '{{ lb_auth_pass }}' }
|
||||
when:
|
||||
|
|
@ -25,6 +31,9 @@
|
|||
template:
|
||||
src: etc/keepalived/keepalived.conf.j2
|
||||
dest: /etc/keepalived/keepalived.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
with_items:
|
||||
- { lbip: '{{ lbip_kubeapiserver }}', state: "BACKUP", interface: '{{ lb_interface }}', auth_pass: '{{ lb_auth_pass }}' }
|
||||
when:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue