Compare commits
15
Commits
main
..
d63e0ede09
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d63e0ede09 | ||
|
|
f48693ca5e | ||
|
|
c342aa9438 | ||
|
|
f3df32e2c2 | ||
|
|
c20f87e83a | ||
|
|
0d4cd47771 | ||
|
|
54e2b70bd6 | ||
|
|
ef4a4fcba4 | ||
|
|
006d302f61 | ||
|
|
0efc0c6887 | ||
|
|
954528bd4d | ||
|
|
2ae07d3c35 | ||
|
|
225a8c8021 | ||
|
|
570ceda411 | ||
|
|
434ec3ca1f |
+2
-2
@@ -21,14 +21,14 @@ keepalived_notify_is_fault: {}
|
||||
keepalived_notify_by_default: {}
|
||||
|
||||
keepalived_track_scripts: []
|
||||
# Example:
|
||||
# Exemple:
|
||||
# - name: check_haproxy_8080
|
||||
# command: /usr/bin/nc -zv 127.0.0.1 8080
|
||||
# - name: check_haproxy_8081
|
||||
# command: /usr/bin/nc -zv 127.0.0.1 8081
|
||||
|
||||
keepalived_track_processes: []
|
||||
# Example:
|
||||
# Exemple:
|
||||
# - name: check_haproxy
|
||||
# search: /usr/sbin/haproxy
|
||||
# quorum: 2
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
---
|
||||
# handlers file for keepalived
|
||||
|
||||
- name: Apply installation
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- /usr/bin/rpm-ostree
|
||||
- apply-live
|
||||
become: true
|
||||
|
||||
- name: Restart keepalived.service
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
|
||||
+2
-1
@@ -1,7 +1,7 @@
|
||||
galaxy_info:
|
||||
namespace: ykn
|
||||
author: pulsar89.5
|
||||
description: Deploy keepalived
|
||||
description: Rôle de déploiement de keepalived
|
||||
|
||||
license: GPL-3.0-or-later
|
||||
|
||||
@@ -13,4 +13,5 @@ galaxy_info:
|
||||
- all
|
||||
|
||||
dependencies:
|
||||
- role: nftables
|
||||
- role: users
|
||||
|
||||
@@ -4,4 +4,22 @@
|
||||
- name: Install keepalived
|
||||
ansible.builtin.apt:
|
||||
name: keepalived
|
||||
when: ansible_facts['pkg_mgr'] == "apt"
|
||||
become: true
|
||||
|
||||
- name: Install keepalived
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- /usr/bin/rpm-ostree
|
||||
- install
|
||||
- --allow-inactive
|
||||
- --assumeyes
|
||||
- --idempotent
|
||||
- keepalived
|
||||
creates: /sysroot/ostree/repo/refs/heads/rpmostree/pkg/keepalived
|
||||
when: ansible_facts['pkg_mgr'] == "atomic_container"
|
||||
become: true
|
||||
notify: Apply installation
|
||||
|
||||
- name: Flush handlers
|
||||
meta: flush_handlers
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
---
|
||||
# tasks file for keepalived
|
||||
|
||||
- name: Import installation tasks
|
||||
ansible.builtin.import_tasks:
|
||||
- name: Include installation tasks
|
||||
ansible.builtin.include_tasks:
|
||||
file: installation.yml
|
||||
|
||||
- name: Import configuration tasks
|
||||
|
||||
Reference in New Issue
Block a user