role_keepalived/tasks/main.yml

18 lines
361 B
YAML
Raw Normal View History

2023-04-12 12:09:46 +00:00
---
# 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