feat: initial commit

This commit is contained in:
Simon Cornet 2025-07-14 16:30:11 +02:00
commit 91db109b12
17 changed files with 256 additions and 93 deletions

11
tasks/config.yaml Normal file
View 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
View 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
View 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"