|
1 | 1 | ---
|
2 |
| -- name: (AlmaLinux/Amazon Linux/Oracle Linux/RHEL/Rocky Linux) Install GeoIP2 and/or OpenTracing EPEL dependency |
| 2 | +- name: (AlmaLinux/Amazon Linux/Oracle Linux/RHEL/Rocky Linux) Install OpenTracing EPEL dependency |
3 | 3 | when:
|
4 | 4 | - ansible_facts['os_family'] == "RedHat"
|
5 |
| - - not (ansible_facts['distribution'] == "Amazon" and ansible_facts['distribution_major_version'] is version('2023', '==')) |
6 | 5 | - ('opentracing' in nginx_modules)
|
7 | 6 | - nginx_install_epel_release | bool
|
8 | 7 | block:
|
9 |
| - - name: (AlmaLinux/Amazon Linux/Oracle Linux/RHEL/Rocky Linux) Import EPEL GPG key |
10 |
| - ansible.builtin.rpm_key: |
11 |
| - state: present |
12 |
| - key: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ((ansible_facts['distribution'] == 'Amazon') | ternary('7', ansible_facts['distribution_major_version'])) }} |
| 8 | + - name: (AlmaLinux/Amazon Linux/Oracle Linux/RHEL/Rocky Linux) Install EPEL dependency |
| 9 | + when: ansible_facts['distribution'] != "Amazon" |
| 10 | + block: |
| 11 | + - name: (AlmaLinux/Oracle Linux/RHEL/Rocky Linux) Import EPEL GPG key |
| 12 | + ansible.builtin.rpm_key: |
| 13 | + state: present |
| 14 | + key: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_facts['distribution_major_version'] }} |
13 | 15 |
|
14 |
| - - name: (AlmaLinux/Amazon Linux/Oracle Linux/RHEL/Rocky Linux) Install EPEL |
15 |
| - ansible.builtin.yum: |
16 |
| - name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ((ansible_facts['distribution'] == 'Amazon') | ternary('7', ansible_facts['distribution_major_version'])) }}.noarch.rpm |
| 16 | + - name: (AlmaLinux/Oracle Linux/RHEL/Rocky Linux) Install EPEL |
| 17 | + ansible.builtin.yum: |
| 18 | + name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_facts['distribution_major_version'] }}.noarch.rpm |
17 | 19 |
|
18 |
| -- name: (Alpine Linux) Install Lua and Encrypted Sessions Alpine Linux 3.17 dependency |
19 |
| - community.general.apk: |
20 |
| - name: nginx-plus-module-ndk |
21 |
| - when: |
22 |
| - - nginx_type == 'plus' |
23 |
| - - ansible_facts['os_family'] == 'Alpine' |
24 |
| - - ansible_facts['distribution_version'] | regex_search('^[0-9]+\\.[0-9]+') is version('3.17', '==') |
25 |
| - - ('encrypted-sessions' in nginx_modules) or ('lua' in nginx_modules) or ('set-misc' in nginx_modules) |
| 20 | + - name: (Amazon Linux) Install EPEL |
| 21 | + ansible.builtin.command: |
| 22 | + cmd: amazon-linux-extras install -y epel |
| 23 | + creates: /etc/yum.repos.d/epel.repo |
| 24 | + when: |
| 25 | + - ansible_facts['distribution'] == "Amazon" |
| 26 | + - ansible_facts['distribution_major_version'] is version('2', '==') |
26 | 27 |
|
27 | 28 | - name: Install NGINX modules
|
28 | 29 | ansible.builtin.package:
|
|
0 commit comments