Skip to content

Commit 3bcd7a0

Browse files
authored
Prepare 0.15.0 release (#300)
1 parent 0922304 commit 3bcd7a0

36 files changed

+591
-594
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
############################
33
*.crt
44
*.key
5-
__pycache__
65
*~
76
\#*
87

@@ -12,4 +11,7 @@ Thumbs.db
1211
.vscode
1312

1413
# Ansible specific
15-
*.retry
14+
*.retry
15+
16+
# Python specific
17+
__pycache__

.travis.yml

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,68 @@
11
---
22
language: python
3-
services:
4-
- docker
3+
services: docker
54
jobs:
65
include:
7-
- name: "Install Specific Version - Debian/Ubuntu"
6+
- name: "(Debian/Ubuntu) Install Specific Version"
87
env:
98
scenario: default
10-
- name: "Install Specific Version - Alpine"
9+
- name: "(Alpine) Install Specific Version"
1110
env:
1211
scenario: default_alpine
13-
- name: "Install Specific Version - CentOS"
12+
- name: "(CentOS) Install Specific Version"
1413
env:
1514
scenario: default_centos
16-
- name: "Install Modules - Debian/Ubuntu"
15+
- name: "(Debian/Ubuntu) Install Modules"
1716
env:
1817
scenario: module
19-
- name: "Install Modules - Alpine"
18+
- name: "(Alpine) Install Modules"
2019
env:
2120
scenario: module_alpine
22-
- name: "Install Modules - CentOS"
21+
- name: "(CentOS) Install Modules"
2322
env:
2423
scenario: module_centos
25-
- name: "Install Stable Branch and Push Configuration - Debian/Ubuntu"
24+
- name: "(Debian/Ubuntu) Install Stable Branch and Push Configuration"
2625
env:
2726
scenario: stable_push
28-
- name: "Install Stable Branch and Push Configuration - Alpine"
27+
- name: "(Alpine) Install Stable Branch and Push Configuration"
2928
env:
3029
scenario: stable_push_alpine
31-
- name: "Install Stable Branch and Push Configuration - CentOS"
30+
- name: "(CentOS) Install Stable Branch and Push Configuration"
3231
env:
3332
scenario: stable_push_centos
34-
- name: "Use Template Setting - Debian/Ubuntu"
33+
- name: "(Debian/Ubuntu) Use Template Setting"
3534
env:
3635
scenario: template
37-
- name: "Use Template Setting - Alpine"
36+
- name: "(Alpine) Use Template Setting"
3837
env:
3938
scenario: template_alpine
40-
- name: "Use Template Setting - CentOS"
39+
- name: "(CentOS) Use Template Setting"
4140
env:
4241
scenario: template_centos
43-
- name: "Install Unit - Debian/Ubuntu"
42+
- name: "(Debian/Ubuntu) Install NGINX Unit"
4443
env:
4544
scenario: unit
46-
- name: "Install Unit - Alpine"
45+
- name: "(Alpine) Install NGINX Unit"
4746
env:
4847
scenario: unit_alpine
49-
- name: "Install Unit - CentOS"
48+
- name: "(CentOS) Install NGINX Unit"
5049
env:
5150
scenario: unit_centos
52-
- name: "Install from Source - Debian/Ubuntu"
51+
- name: "(Debian/Ubuntu) Install from Source"
5352
env:
5453
scenario: source
55-
- name: "Install from Source - Alpine"
54+
- name: "(Alpine) Install from Source"
5655
env:
5756
scenario: source_alpine
58-
- name: "Install from Source - CentOS"
57+
- name: "(CentOS) Install from Source"
5958
env:
6059
scenario: source_centos
61-
before_install:
62-
- sudo apt-get -qq update
60+
before_install: sudo apt-get -qq update
6361
install:
64-
- pip install ansible==2.9.9
65-
- pip install molecule[docker]==3.0.4
66-
- pip install ansible-lint
62+
- pip install ansible==2.9.11
63+
- pip install molecule==3.0.6
64+
- pip install docker==4.2.2
65+
- pip install ansible-lint==4.2.0
6766
script:
6867
- molecule --version
6968
- ansible --version

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## 0.15.0 (Unreleased)
44

5+
DEPRECATION WARNING:
6+
7+
* NGINX now has a separate role to manage and create NGINX configurations available [here](https://github.com/nginxinc/ansible-role-nginx-config). Any new issues or PRs related to configuring NGINX should be submitted in the new NGINX Config repository. New issues or PRs related to configuring NGINX submitted in this repository will not be worked on. The NGINX configuration functionailities included in this role will be removed in an upcoming release.
8+
* NGINX Unit now has a separate role available [here](https://github.com/nginxinc/ansible-role-nginx-unit). Any new issues or PRs related to NGINX Unit should be submitted in the new NGINX Unit repository. New issues or PRs related to NGINX Unit submitted in this repository will not be worked on. The NGINX Unit functionailities included in this role will be removed in an upcoming release.
9+
510
BREAKING CHANGES:
611

712
* The Debian and Ubuntu repositories have slightly changed. You may run into some duplication issues when running the role on a preexisting target that already has had NGINX installed using the role. To fix this, manually remove the old repository source.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Follow our [Installation Guide](https://github.com/nginxinc/ansible-role-nginx/b
2626

2727
### Project Structure
2828

29-
* The NGINX Ansible role is written in `yaml` and supports open source NGINX, NGINX Plus, NGINX Amplify, and NGINX Unit.
29+
* The NGINX Ansible role is written in `yaml` and supports NGINX Open Source, NGINX Plus, NGINX Amplify, and NGINX Unit.
3030
* The project follows the standard [Ansible role directory structure](https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html)
3131
* The main code is found in `tasks/`
3232
* The main variables can be found in `defaults/main/*.yml`

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ This role installs NGINX Open Source, NGINX Plus, the NGINX Amplify agent, or NG
88

99
**Note:** This role is still in active development. There may be unidentified issues and the role variables may change as development continues.
1010

11+
**Deprecation Warnings:**
12+
* NGINX now has a separate role to manage and create NGINX configurations available [here](https://github.com/nginxinc/ansible-role-nginx-config). Any new issues or PRs related to configuring NGINX should be submitted in the new NGINX Config repository. New issues or PRs related to configuring NGINX submitted in this repository will not be worked on. The NGINX configuration functionailities included in this role will be removed in an upcoming release.
13+
* NGINX Unit now has a separate role available [here](https://github.com/nginxinc/ansible-role-nginx-unit). Any new issues or PRs related to NGINX Unit should be submitted in the new NGINX Unit repository. New issues or PRs related to NGINX Unit submitted in this repository will not be worked on. The NGINX Unit functionailities included in this role will be removed in an upcoming release.
14+
1115
Requirements
1216
------------
1317

@@ -208,9 +212,11 @@ Do note that if you install this repository via Ansible Galaxy, you will have to
208212
Other NGINX Roles
209213
-----------------
210214

211-
You can find an Ansible collection of roles to help you install and configure NGINX Controller [here](https://github.com/nginxinc/ansible-collection-nginx_controller)
215+
You can find an Ansible role to install and configure NGINX App Protect [here](https://github.com/nginxinc/ansible-role-nginx-app-protect)
216+
217+
You can find an Ansible collection of roles to install and configure NGINX Controller [here](https://github.com/nginxinc/ansible-collection-nginx_controller)
212218

213-
You can find an Ansible role to help you install and configure NGINX App Protect [here](https://github.com/nginxinc/ansible-role-nginx-app-protect)
219+
You can find an Ansible role to install NGINX Unit [here](https://github.com/nginxinc/ansible-role-nginx-unit)
214220

215221
License
216222
-------
@@ -226,4 +232,4 @@ Author Information
226232

227233
[Tom Gamull](https://github.com/magicalyak)
228234

229-
© [NGINX, Inc.](https://www.nginx.com/) 2018 - 2020
235+
© [F5 Networks, Inc.](https://www.f5.com/) 2018 - 2020

defaults/main/bsd.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ nginx_bsd_systems: ['FreeBSD', 'NetBSD', 'OpenBSD', 'DragonFlyBSD', 'HardenedBSD
77
nginx_plus_bsd_systems: ['FreeBSD']
88

99
# Choose to install BSD packages or ports.
10-
# Options are True for packages or False for ports.
11-
# Default is True.
10+
# Options are true for packages or false for ports.
11+
# Default is true.
1212
nginx_bsd_install_packages: true
1313

1414
# Choose to update BSD ports collection.
15-
# Options are True for update or False for do not update.
16-
# Default is True.
15+
# Options are true for update or false for do not update.
16+
# Default is true.
1717
nginx_bsd_update_ports: true
1818

1919
# Choose to install packages built from BSD ports collection if
2020
# available.
21-
# Options are True for use packages or False for do not use packages.
22-
# Default is True.
21+
# Options are true for use packages or false for do not use packages.
22+
# Default is true.
2323
nginx_bsd_portinstall_use_packages: true
2424

2525
# FreeBSD extra packages

defaults/main/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ nginx_cleanup_config_paths:
105105
# nginx_cleanup_config_files:
106106
# - /etc/nginx/conf.d/default.conf
107107

108-
# Set selinux enforcing for nginx (Centos/Redhat only) - you may need to open ports on your own
108+
# Set SELinux enforcing for NGINX (Centos/Redhat only) - you may need to open ports on your own
109109
nginx_selinux: false
110110
# Enable enforcing mode if true. Permissive if false (audit only, no enforcing) globally (only works with nginx_selinux: true)
111111
nginx_selinux_enforcing: true

defaults/main/unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Use a list of supported NGINX Unit modules.
44
# Default is false.
55
nginx_unit_enable: false
6-
nginx_unit_modules: null
6+
nginx_unit_modules: []
File renamed without changes.

files/www/index.html

Lines changed: 0 additions & 25 deletions
This file was deleted.

handlers/main.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
---
2-
# handlers file for ansible-role-nginx
32
- name: "(Handler: All OSs) Check NGINX"
43
command: "nginx -t"
54
changed_when: false
65

7-
- name: "(Handler: All OSs) systemd daemon-reload"
6+
- name: "(Handler: All OSs) Systemd Daemon-Reload"
87
systemd:
98
daemon_reload: yes
109
notify: "(Handler: All OSs) Start NGINX"
1110

1211
- name: "(Handler: All OSs) Run NGINX"
1312
block:
14-
1513
- name: "(Handler: All OSs) Start NGINX"
1614
service:
1715
name: nginx
@@ -22,7 +20,6 @@
2220
- name: "(Handler: All OSs) Reload NGINX"
2321
command: "nginx -s reload"
2422
changed_when: false
25-
2623
when:
2724
- nginx_start | bool
2825
- not ansible_check_mode

meta/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
galaxy_info:
33
author: Alessandro Fael Garcia
44
description: Official Ansible role for NGINX
5-
company: NGINX, Inc.
5+
role_name: nginx
6+
company: F5 Networks, Inc.
67

78
license: Apache License, Version 2.0
89

molecule/common/playbooks/default_converge.yml

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,46 @@
22
- name: Converge
33
hosts: all
44
pre_tasks:
5-
- name: "Set repo if Alpine"
5+
- name: Set repo if Alpine
66
set_fact:
77
version: "=1.17.10-r1"
88
when: ansible_os_family == "Alpine"
9-
- name: "Set repo if Debian"
9+
- name: Set repo if Debian
1010
set_fact:
1111
version: "=1.17.10-1~{{ ansible_distribution_release }}"
1212
when: ansible_os_family == "Debian"
13-
- name: "Set repo if RedHat"
13+
- name: Set repo if RedHat
1414
set_fact:
1515
version: "-1.17.10-1.el{{ ansible_distribution_major_version }}.ngx"
1616
when: ansible_os_family == "RedHat"
17-
- name: "Enable Nginx @CentOS-AppStream dnf modules"
17+
- name: Enable NGINX @CentOS-AppStream dnf modules
1818
shell:
1919
args:
2020
cmd: dnf module info nginx | grep -q 'Stream.*\[e\]' && echo -n ENABLED || dnf module enable -y nginx # noqa 204 303
2121
register: dnf_module_enable
2222
changed_when: dnf_module_enable.stdout != 'ENABLED'
2323
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == "8"
24-
roles:
25-
- role: ansible-role-nginx
26-
vars:
27-
nginx_debug_output: true
28-
nginx_selinux: true
29-
nginx_selinux_tcp_ports:
30-
- 80
31-
- 443
32-
nginx_version: "{{ version }}"
33-
nginx_configure: false
34-
nginx_logrotate_conf_enable: true
35-
nginx_logrotate_conf:
36-
paths:
37-
- "/var/log/nginx/*.log"
38-
options:
39-
- daily
40-
- missingok
41-
- rotate 14
42-
- compress
43-
- delaycompress
44-
- notifempty
45-
- sharedscripts
24+
tasks:
25+
- name: Install NGINX
26+
include_role:
27+
name: ansible-role-nginx
28+
vars:
29+
nginx_debug_output: true
30+
nginx_selinux: true
31+
nginx_selinux_tcp_ports:
32+
- 80
33+
- 443
34+
nginx_version: "{{ version }}"
35+
nginx_configure: false
36+
nginx_logrotate_conf_enable: true
37+
nginx_logrotate_conf:
38+
paths:
39+
- "/var/log/nginx/*.log"
40+
options:
41+
- daily
42+
- missingok
43+
- rotate 14
44+
- compress
45+
- delaycompress
46+
- notifempty
47+
- sharedscripts

0 commit comments

Comments
 (0)