18 lines
361 B
YAML
18 lines
361 B
YAML
|
---
|
||
|
# tasks file for keepalived
|
||
|
|
||
|
- name: Installer keepalived
|
||
|
ansible.builtin.apt:
|
||
|
name: keepalived
|
||
|
become: true
|
||
|
|
||
|
- name: Déployer la configuration
|
||
|
ansible.builtin.template:
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: u=rw,g=r,o=r
|
||
|
src: keepalived.j2
|
||
|
dest: /etc/keepalived/keepalived.conf
|
||
|
become: true
|
||
|
notify: Redémarrer keepalived.service
|