feat: initial commit
This commit is contained in:
parent
3242428dbb
commit
91db109b12
17 changed files with 256 additions and 93 deletions
11
tasks/config.yaml
Normal file
11
tasks/config.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
|
||||
# configure keepalived
|
||||
- name: "config - keepalived"
|
||||
ansible.builtin.template:
|
||||
src: "templates/keepalived.conf.j2"
|
||||
dest: "/etc/keepalived/keepalived.conf"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
notify: "restart keepalived"
|
||||
7
tasks/install.yaml
Normal file
7
tasks/install.yaml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
|
||||
# install keepalived
|
||||
- name: "install keepalived"
|
||||
ansible.builtin.apt:
|
||||
name: "keepalived"
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
9
tasks/main.yaml
Normal file
9
tasks/main.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
|
||||
# import install
|
||||
- name: "install"
|
||||
ansible.builtin.import_tasks: "install.yaml"
|
||||
|
||||
# import config
|
||||
- name: "config"
|
||||
ansible.builtin.import_tasks: "config.yaml"
|
||||
Loading…
Add table
Add a link
Reference in a new issue