nginx/server: Use 1.20 branch for EL8 hosts
This commit is contained in:
parent
8f51d7d48f
commit
3ad436adcd
1 changed files with 16 additions and 1 deletions
|
@ -2,7 +2,22 @@
|
||||||
- name: include os-specific variables
|
- name: include os-specific variables
|
||||||
include_vars: "{{ ansible_os_family }}.yml"
|
include_vars: "{{ ansible_os_family }}.yml"
|
||||||
|
|
||||||
- name: install nginx packages
|
- name: enable nginx:120 module
|
||||||
|
command:
|
||||||
|
argv:
|
||||||
|
- dnf
|
||||||
|
- module
|
||||||
|
- -y
|
||||||
|
- enable
|
||||||
|
- nginx:1.20
|
||||||
|
creates: /etc/dnf/modules.d/nginx.module
|
||||||
|
warn: false
|
||||||
|
when:
|
||||||
|
- ansible_os_family == "RedHat"
|
||||||
|
- ansible_distribution != "Fedora"
|
||||||
|
- ansible_distribution_major_version|int >= 8
|
||||||
|
|
||||||
|
- name: install packages
|
||||||
package:
|
package:
|
||||||
name: nginx
|
name: nginx
|
||||||
state: installed
|
state: installed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue