fix: Add compatibility with CoreOS
This commit is contained in:
parent
f48693ca5e
commit
b67125e625
@ -21,14 +21,14 @@ keepalived_notify_is_fault: {}
|
|||||||
keepalived_notify_by_default: {}
|
keepalived_notify_by_default: {}
|
||||||
|
|
||||||
keepalived_track_scripts: []
|
keepalived_track_scripts: []
|
||||||
# Exemple:
|
# Example:
|
||||||
# - name: check_haproxy_8080
|
# - name: check_haproxy_8080
|
||||||
# command: /usr/bin/nc -zv 127.0.0.1 8080
|
# command: /usr/bin/nc -zv 127.0.0.1 8080
|
||||||
# - name: check_haproxy_8081
|
# - name: check_haproxy_8081
|
||||||
# command: /usr/bin/nc -zv 127.0.0.1 8081
|
# command: /usr/bin/nc -zv 127.0.0.1 8081
|
||||||
|
|
||||||
keepalived_track_processes: []
|
keepalived_track_processes: []
|
||||||
# Exemple:
|
# Example:
|
||||||
# - name: check_haproxy
|
# - name: check_haproxy
|
||||||
# search: /usr/sbin/haproxy
|
# search: /usr/sbin/haproxy
|
||||||
# quorum: 2
|
# quorum: 2
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
---
|
---
|
||||||
# handlers file for keepalived
|
# handlers file for keepalived
|
||||||
|
|
||||||
- name: Apply installation
|
|
||||||
ansible.builtin.command:
|
|
||||||
argv:
|
|
||||||
- /usr/bin/rpm-ostree
|
|
||||||
- apply-live
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Restart keepalived.service
|
- name: Restart keepalived.service
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
galaxy_info:
|
galaxy_info:
|
||||||
namespace: ykn
|
namespace: ykn
|
||||||
author: pulsar89.5
|
author: pulsar89.5
|
||||||
description: Rôle de déploiement de keepalived
|
description: Deploy keepalived
|
||||||
|
|
||||||
license: GPL-3.0-or-later
|
license: GPL-3.0-or-later
|
||||||
|
|
||||||
@ -13,12 +13,4 @@ galaxy_info:
|
|||||||
- all
|
- all
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- role: nftables
|
|
||||||
- role: users
|
- role: users
|
||||||
vars:
|
|
||||||
users_role_keepalived:
|
|
||||||
- name: keepalived_script
|
|
||||||
comment: "Dedicated user for keepalived script"
|
|
||||||
update_password: on_create
|
|
||||||
password_lock: true
|
|
||||||
shell: /bin/bash
|
|
||||||
|
@ -4,22 +4,4 @@
|
|||||||
- name: Install keepalived
|
- name: Install keepalived
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: keepalived
|
name: keepalived
|
||||||
when: ansible_facts['pkg_mgr'] == "apt"
|
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Install keepalived
|
|
||||||
ansible.builtin.command:
|
|
||||||
argv:
|
|
||||||
- /usr/bin/rpm-ostree
|
|
||||||
- install
|
|
||||||
- --allow-inactive
|
|
||||||
- --assumeyes
|
|
||||||
- --idempotent
|
|
||||||
- keepalived
|
|
||||||
creates: /usr/sbin/dnsmasq
|
|
||||||
when: ansible_facts['pkg_mgr'] == "atomic_container"
|
|
||||||
become: true
|
|
||||||
notify: Apply installation
|
|
||||||
|
|
||||||
- name: Flush handlers
|
|
||||||
meta: flush_handlers
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
# tasks file for keepalived
|
# tasks file for keepalived
|
||||||
|
|
||||||
- name: Include installation tasks
|
- name: Import installation tasks
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.import_tasks:
|
||||||
file: installation.yml
|
file: installation.yml
|
||||||
|
|
||||||
- name: Import configuration tasks
|
- name: Import configuration tasks
|
||||||
|
9
vars/main.yml
Normal file
9
vars/main.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
# vars file for keepalived
|
||||||
|
|
||||||
|
users:
|
||||||
|
- name: keepalived_script
|
||||||
|
comment: "Dedicated user for keepalived script"
|
||||||
|
update_password: on_create
|
||||||
|
password_lock: true
|
||||||
|
shell: /bin/bash
|
Loading…
x
Reference in New Issue
Block a user