Skip to content

Commit c14971f

Browse files
committed
Update install-modules.yml
1 parent 7cb41af commit c14971f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tasks/modules/install-modules.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010
- name: (AlmaLinux/Oracle Linux/RHEL) Install GeoIP2 and/or OpenTracing EPEL dependencies
1111
when:
12-
- ansible_facts['distribution'] == "AlmaLinux"
13-
or ansible_facts['distribution'] == "OracleLinux"
14-
or ansible_facts['distribution'] == "RedHat"
12+
- ansible_facts['os_family'] == "RedHat"
1513
- (ansible_facts['distribution_major_version'] == 7 and '"geoip2" in nginx_modules')
1614
or '"opentracing" in nginx_modules'
1715
- nginx_install_epel_release | bool
@@ -25,6 +23,15 @@
2523
ansible.builtin.yum:
2624
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_facts['distribution_major_version'] }}.noarch.rpm
2725

26+
- name: (Alpine Linux) Install Lua and Encrypted Sessions Alpine Linux 3.17 dependencies
27+
when:
28+
- ansible_facts['os_family'] == "Alpine"
29+
- ansible_facts['distribution_version'] | regex_search('^[0-9]+\\.[0-9]+') is version('3.17', '==')
30+
- ('"lua" in nginx_modules') or ('"encrypted-sessions" in nginx_modules')
31+
tasks:
32+
community.general.apk:
33+
name: nginx-plus-module-ndk
34+
2835
- name: Setup NGINX modules
2936
ansible.builtin.package:
3037
name: "nginx-{{ (nginx_type == 'plus') | ternary('plus-', '') }}module-{{ item.name | default(item) }}\

0 commit comments

Comments
 (0)