You've already forked role_keepalived
[INFO] Création du rôle
This commit is contained in:
17
tasks/main.yml
Normal file
17
tasks/main.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
# 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
|
Reference in New Issue
Block a user