Private
Public Access
2
0
This commit is contained in:
2026-01-20 17:40:16 +03:00
parent cda556eec6
commit b78da80550
83 changed files with 108 additions and 82 deletions

View File

@@ -0,0 +1,28 @@
- name: Installation des paquetages
ansible.builtin.apt:
name:
- "keepalived"
notify:
- "Restart keepalived"
- name: Tell kernel to allow binding non-local IP
ansible.posix.sysctl:
name: "net.ipv4.ip_nonlocal_bind"
value: "1"
sysctl_set: true
notify:
- "Restart keepalived"
- name: Generate keepalived.conf file
ansible.builtin.template:
src: "templates/keepalived.conf"
dest: "/etc/keepalived/keepalived.conf"
mode: "0640"
notify:
- "Restart keepalived"
- name: Activate and start keepalived
ansible.builtin.service:
name: "keepalived"
state: "started"
enabled: true