nginx/server: Update nginx to 1.22 on rhel hosts
This commit is contained in:
parent
42f725d6f8
commit
0db76e1481
1 changed files with 4 additions and 3 deletions
|
@ -2,18 +2,19 @@
|
|||
- name: Include OS-specific variables
|
||||
ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Enable nginx:120 module
|
||||
- name: Enable nginx:122 module
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- dnf
|
||||
- module
|
||||
- -y
|
||||
- enable
|
||||
- nginx:1.20
|
||||
- nginx:1.22
|
||||
creates: /etc/dnf/modules.d/nginx.module
|
||||
notify: Restart nginx
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution_major_version | int == 8
|
||||
- ansible_distribution_major_version | int >= 8
|
||||
- ansible_distribution != "Fedora"
|
||||
|
||||
- name: Install packages
|
||||
|
|
Loading…
Add table
Reference in a new issue