Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit a1a91ed

Browse files
committed
Update nginx role to latest version.
1 parent f3956e8 commit a1a91ed

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

provisioning/requirements.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ roles:
3939
- name: geerlingguy.mysql
4040
version: 3.3.1
4141
- name: geerlingguy.nginx
42-
version: 3.0.0
42+
version: 3.1.0
4343
- name: geerlingguy.nodejs
4444
version: 5.1.1
4545
- name: geerlingguy.php

provisioning/roles/geerlingguy.nginx/.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
matrix:
4343
distro:
4444
- centos8
45+
- rockylinux8
4546
- ubuntu2004
4647
- ubuntu1804
4748
- debian10

provisioning/roles/geerlingguy.nginx/defaults/main.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,10 @@ nginx_upstreams: []
8282
# - name: myapp1
8383
# strategy: "ip_hash" # "least_conn", etc.
8484
# keepalive: 16 # optional
85-
# servers: {
86-
# "srv1.example.com",
87-
# "srv2.example.com weight=3",
88-
# "srv3.example.com"
89-
# }
85+
# servers:
86+
# - "srv1.example.com"
87+
# - "srv2.example.com weight=3"
88+
# - "srv3.example.com"
9089

9190
nginx_log_format: |-
9291
'$remote_addr - $remote_user [$time_local] "$request" '

provisioning/roles/geerlingguy.nginx/tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# Setup/install tasks.
1212
- include_tasks: setup-RedHat.yml
13-
when: ansible_os_family == 'RedHat'
13+
when: ansible_os_family == 'RedHat' or ansible_os_family == 'Rocky'
1414

1515
- include_tasks: setup-Ubuntu.yml
1616
when: ansible_distribution == 'Ubuntu'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
root_group: root
3+
nginx_conf_path: /etc/nginx/conf.d
4+
nginx_conf_file_path: /etc/nginx/nginx.conf
5+
nginx_mime_file_path: /etc/nginx/mime.types
6+
nginx_pidfile: /var/run/nginx.pid
7+
nginx_vhost_path: /etc/nginx/conf.d
8+
nginx_default_vhost_path: /etc/nginx/conf.d/default.conf
9+
__nginx_user: "nginx"

0 commit comments

Comments
 (0)