Import Ansible playbook for bootstrap k8s cluster
This commit is contained in:
parent
5068274017
commit
a6706498b6
17 changed files with 230 additions and 3 deletions
14
contrib/ansible/roles/keepalived/tasks/main.yml
Normal file
14
contrib/ansible/roles/keepalived/tasks/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- name: Install keepalived
|
||||
apt:
|
||||
pkg:
|
||||
- keepalived
|
||||
state: latest
|
||||
|
||||
- name: Configure keepalived
|
||||
template: src=keepalived.conf.j2 dest=/etc/keepalived/keepalived.conf
|
||||
tags: keepalived
|
||||
notify: restart keepalived
|
||||
|
||||
- name: Start keepalived
|
||||
service: name=keepalived state=started
|
Loading…
Add table
Add a link
Reference in a new issue