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