mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
28
roles/nginx/tasks/install_nginx.yml
Normal file
28
roles/nginx/tasks/install_nginx.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
|
||||
- name: Remove openresty
|
||||
yum:
|
||||
name:
|
||||
- openresty
|
||||
state: absent
|
||||
tags: web
|
||||
|
||||
- name: Enable 1.16 module
|
||||
shell: |
|
||||
yum -y module reset nginx
|
||||
yum -y module enable nginx:1.16
|
||||
args:
|
||||
warn: False
|
||||
changed_when: False
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ansible_distribution_major_version is version('8', '>=')
|
||||
tags: web
|
||||
|
||||
- name: Install nginx
|
||||
yum:
|
||||
name:
|
||||
- nginx
|
||||
- nginx-all-modules
|
||||
tags: web
|
||||
|
Reference in New Issue
Block a user