nginx: Enable nginx 1.24 module for EL9
This commit is contained in:
parent
e35f425d07
commit
42fddcc278
1 changed files with 16 additions and 1 deletions
|
@ -14,7 +14,22 @@
|
|||
notify: Restart nginx
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution_major_version | int >= 8
|
||||
- ansible_distribution_major_version | int == 8
|
||||
- ansible_distribution != "Fedora"
|
||||
|
||||
- name: Enable nginx:124 module
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- dnf
|
||||
- module
|
||||
- -y
|
||||
- enable
|
||||
- nginx:1.22
|
||||
creates: /etc/dnf/modules.d/nginx.module
|
||||
notify: Restart nginx
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution_major_version | int >= 9
|
||||
- ansible_distribution != "Fedora"
|
||||
|
||||
- name: Install packages
|
||||
|
|
Loading…
Add table
Reference in a new issue