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

Commit 5906155

Browse files
committed
Update Nginx role to latest version.
1 parent ece083b commit 5906155

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

provisioning/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
- src: geerlingguy.mysql
3737
version: 2.5.0
3838
- src: geerlingguy.nginx
39-
version: 1.9.6
39+
version: 1.9.7
4040
- src: geerlingguy.nodejs
4141
version: 4.0.0
4242
- src: geerlingguy.php

provisioning/roles/geerlingguy.nginx/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ Extra lines to be inserted in the top-level `http` block in `nginx.conf`. The va
109109

110110
(For Ubuntu only) Allows you to use the official Nginx PPA instead of the system's package. You can set the version to `stable` or `development`.
111111

112+
nginx_yum_repo_enabled: true
113+
114+
(For RedHat/CentOS only) Set this to `false` to disable the installation of the `nginx` yum repository. This could be necessary if you want the default OS stable packages, or if you use Satellite.
115+
112116
## Dependencies
113117

114118
None.
@@ -125,4 +129,4 @@ MIT / BSD
125129

126130
## Author Information
127131

128-
This role was created in 2014 by [Jeff Geerling](http://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).
132+
This role was created in 2014 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Used only for Debian/Ubuntu installation, as the -t option for apt.
33
nginx_default_release: ""
44

5+
# Used only for Redhat installation, enables source Nginx repo.
6+
nginx_yum_repo_enabled: true
7+
58
# Use the official Nginx PPA for Ubuntu, and the version to use if so.
69
nginx_ppa_use: false
710
nginx_ppa_version: stable

provisioning/roles/geerlingguy.nginx/tasks/setup-RedHat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
owner: root
77
group: root
88
mode: 0644
9+
when: nginx_yum_repo_enabled
910

1011
- name: Ensure nginx is installed.
1112
yum:
1213
name: "{{ nginx_package_name }}"
1314
state: installed
14-
enablerepo: nginx

0 commit comments

Comments
 (0)