Skip to content

Commit a6446e2

Browse files
committed
fixes
1 parent baf20e1 commit a6446e2

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

tasks/modules/install-keepalived.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

tasks/modules/install-packages.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
- name: Install NGINX Plus HA keepalived package
3+
ansible.builtin.package:
4+
name: nginx-ha-keepalived
5+
state: present
6+
when:
7+
- nginx_keepalived_enable | bool
8+
- ansible_facts['os_family'] != 'Alpine' or ansible_facts['distribution'] != 'Amazon'
9+
notify: (Handler) Start NGINX Plus HA keepalived
10+
11+
- name: Configure NGINX Plus keepalived HA
12+
ansible.builtin.template:
13+
src: keepalived/keepalived.conf.tmpl.j2
14+
dest: /etc/keepalived/keepalived.conf
15+
mode: "0644"
16+
when:
17+
- nginx_keepalived_conf_enable | bool
18+
- ansible_facts['os_family'] != 'Alpine' or ansible_facts['distribution'] != 'Amazon'
19+
notify: (Handler) Start NGINX Plus HA keepalived

0 commit comments

Comments
 (0)