You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/release-drafter.yml
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -88,13 +88,13 @@ template: |
88
88
89
89
## Install & Upgrade
90
90
91
-
* To install the Ansible NGINX App Protect role on a fresh environment, run `ansible-galaxy install nginxinc.nginx_app_protect`.
92
-
* To upgrade the Ansible NGINX App Protect role to the latest release, run `ansible-galaxy install -f nginxinc.nginx_app_protect`.
93
-
* To install or upgrade to this specific Ansible NGINX App Protect role release ($RESOLVED_VERSION), run `ansible-galaxy install -f nginxinc.nginx_app_protect,v$RESOLVED_VERSION`.
91
+
* To install the Ansible NGINX App Protect role on a fresh environment, run `ansible-galaxy install nginxinc.nginx_app_protect`.
92
+
* To upgrade the Ansible NGINX App Protect role to the latest release, run `ansible-galaxy install -f nginxinc.nginx_app_protect`.
93
+
* To install or upgrade to this specific Ansible NGINX App Protect role release ($RESOLVED_VERSION), run `ansible-galaxy install -f nginxinc.nginx_app_protect,v$RESOLVED_VERSION`.
94
94
95
95
## Resources
96
96
97
-
* Functional configuration examples (check `converge.yml` under each `molecule` scenario) -- [github.com/nginxinc/ansible-role-nginx-app-protect/tree/$RESOLVED_VERSION/molecule](https://github.com/nginxinc/ansible-role-nginx-app-protect/tree/$RESOLVED_VERSION/molecule).
* NGINX Ansible role & collection introductory blog -- [nginx.com/blog/announcing-nginx-core-collection-ansible](https://www.nginx.com/blog/announcing-nginx-core-collection-ansible).
100
-
* NGINX: Better with Ansible demo -- [github.com/alessfg/nginx-ansible-demo](https://github.com/alessfg/nginx-ansible-demo).
97
+
* Functional configuration examples (check `converge.yml` under each `molecule` scenario) -- [github.com/nginxinc/ansible-role-nginx-app-protect/tree/$RESOLVED_VERSION/molecule](https://github.com/nginxinc/ansible-role-nginx-app-protect/tree/$RESOLVED_VERSION/molecule).
* NGINX Ansible role & collection introductory blog -- [nginx.com/blog/announcing-nginx-core-collection-ansible](https://www.nginx.com/blog/announcing-nginx-core-collection-ansible).
100
+
* NGINX: Better with Ansible demo -- [github.com/alessfg/nginx-ansible-demo](https://github.com/alessfg/nginx-ansible-demo).
Copy file name to clipboardExpand all lines: README.md
+34-30Lines changed: 34 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,14 @@ This role installs and configures NGINX App Protect WAF or DoS for NGINX Plus on
16
16
17
17
## Requirements
18
18
19
+
### NGINX App Protect
20
+
21
+
If you wish to install NGINX App Protect WAF or NGINX App Protect DoS using this role, you will need to obtain the corresponding NGINX App Protect license beforehand.
22
+
19
23
### Ansible
20
24
21
-
* This role is developed and tested with [maintained](https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html) versions of Ansible core (above `2.11`) and Ansible (above `2.9.10`).
22
-
* When using Ansible base, you will also need to install the following collections:
25
+
* This role is developed and tested with [maintained](https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html) versions of Ansible core (above `2.11`).
26
+
* When using Ansible core, you will also need to install the following collections:
23
27
24
28
```yaml
25
29
---
@@ -35,22 +39,22 @@ This role installs and configures NGINX App Protect WAF or DoS for NGINX Plus on
35
39
36
40
### Jinja2
37
41
38
-
* This role uses Jinja2 templates. Ansible base installs Jinja2 by default, but depending on your install and/or upgrade path, you might be running an outdated version of Jinja2. The minimum version of Jinja2 required for the role to properly function is `2.11`.
42
+
* This role uses Jinja2 templates. Ansible core installs Jinja2 by default, but depending on your install and/or upgrade path, you might be running an outdated version of Jinja2. The minimum version of Jinja2 required for the role to properly function is `2.11`.
39
43
* Instructions on how to install Jinja2 can be found in the [Jinja2 website](https://jinja.palletsprojects.com/en/2.11.x/intro/#installation).
40
44
41
-
### Molecule
45
+
### Molecule (Optional)
42
46
43
47
* Molecule is used to test the various functionalities of the role. The recommended version of Molecule to test this role is `3.3`.
44
-
* Instructions on how to install Molecule can be found in the [Molecule website](https://molecule.readthedocs.io/en/latest/installation.html).
45
-
* To run the Molecule tests, you must first add your NGINX repository certificate and key to the local environment. Run the following commands to export these files as base64-encoded variables and execute the Molecule tests:
48
+
* Instructions on how to install Molecule can be found in the [Molecule website](https://molecule.readthedocs.io/en/latest/installation.html). _You will also need to install the Molecule Docker driver._
49
+
* To run the Molecule tests, you must copy your NGINX App Protect license to the role's [`files/license`](https://github.com/nginxinc/ansible-role-nginx-app-protect/blob/main/files/license/) folder.
46
50
47
-
``` bash
48
-
export NGINX_CRT=$( cat <path to your certificate file> | base64 )
49
-
export NGINX_KEY=$( cat <path to your key file> | base64 )
50
-
molecule test
51
-
```
51
+
You can alternatively add your NGINX App Protect repository certificate and key to the local environment. Run the following commands to export these files as base64-encoded variables and execute the Molecule tests:
52
52
53
-
You can alternatively copy your NGINX license to the role's [`files/license`](https://github.com/nginxinc/ansible-role-nginx-app-protect/blob/main/files/license/) folder.
53
+
```bash
54
+
export NGINX_CRT=$( cat <path to your certificate file> | base64 )
55
+
export NGINX_KEY=$( cat <path to your key file> | base64 )
56
+
molecule test
57
+
```
54
58
55
59
## Installation
56
60
@@ -75,14 +79,14 @@ Amazon Linux 2:
75
79
- any
76
80
CentOS:
77
81
- 7.4+
82
+
Debian:
83
+
- stretch (9)
84
+
- buster (10)
78
85
RHEL:
79
86
- 7.4+
80
-
Debian:
81
-
- 9
82
-
- 10
83
87
Ubuntu:
84
-
- 18.04
85
-
- 20.04
88
+
- bionic (18.04)
89
+
- focal (20.04)
86
90
```
87
91
88
92
**Note:** Due to a packaging limitation in NGINX App Protect on Alpine, it may be required to explicitly install NGINX Plus on the instance **before** using the NGINX App Protect role if a hotfix version of NGINX Plus has been published. It is recommended to use the [NGINX Core](https://galaxy.ansible.com/nginxinc/nginx_core) Ansible role for this purpose.
@@ -95,25 +99,25 @@ The NGINX App Protect Ansible role supports all platforms supported by [NGINX Pl
95
99
CentOS:
96
100
- 7.4+
97
101
Debian:
98
-
- 10
102
+
- buster (10)
99
103
Ubuntu:
100
-
- 18.04
101
-
- 20.04
104
+
- bionic (18.04)
105
+
- focal (20.04)
102
106
```
103
107
104
108
## Role Variables
105
109
106
110
This role has multiple variables. The descriptions and defaults for all these variables can be found in the **[`defaults/`](https://github.com/nginxinc/ansible-role-nginx-app-protect/blob/main/defaults/)** folder in the following files:
107
111
108
-
|Name|Description|
109
-
|----|-----------|
110
-
|**[`main.yml`](https://github.com/nginxinc/ansible-role-nginx-app-protect/blob/main/defaults/main.yml)**:|NGINX App Protect installation and configuration variables|
112
+
|Name | Description|
113
+
|---- | -----------|
114
+
|**[`main.yml`](https://github.com/nginxinc/ansible-role-nginx-app-protect/blob/main/defaults/main.yml)** | NGINX App Protect installation and configuration variables|
111
115
112
116
Similarly, descriptions and defaults for preset variables can be found in the **`vars/`** folder in the following files:
113
117
114
-
|Name|Description|
115
-
|----|-----------|
116
-
|**[`main.yml`](https://github.com/nginxinc/ansible-role-nginx-app-protect/blob/main/vars/main.yml)**|List of supported NGINX App Protect platforms|
118
+
|Name | Description|
119
+
|---- | -----------|
120
+
|**[`main.yml`](https://github.com/nginxinc/ansible-role-nginx-app-protect/blob/main/vars/main.yml)** | List of supported NGINX App Protect platforms|
117
121
118
122
## Dependencies
119
123
@@ -123,15 +127,15 @@ Similarly, descriptions and defaults for preset variables can be found in the **
123
127
124
128
A working functional playbook example can be found in the **`molecule/default/`** folder in the following file:
125
129
126
-
|Name|Description|
127
-
|----|-----------|
128
-
|**[`molecule/default/converge.yml`](https://github.com/nginxinc/ansible-role-nginx-app-protect/blob/main/molecule/default/converge.yml)**|Install and configure NGINX App Protect|
130
+
|Name | Description|
131
+
|---- | -----------|
132
+
|**[`molecule/default/converge.yml`](https://github.com/nginxinc/ansible-role-nginx-app-protect/blob/main/molecule/default/converge.yml)** | Install and configure NGINX App Protect|
129
133
130
134
## Other NGINX Ansible Collections and Roles
131
135
132
136
You can find the Ansible NGINX Core collection of roles to install and configure NGINX Open Source, NGINX Plus, and NGINX App Protect WAF and DoS products [here](https://github.com/nginxinc/ansible-collection-nginx).
133
137
134
-
You can find the Ansible NGINX role to install NGINX [here](https://github.com/nginxinc/ansible-role-nginx).
138
+
You can find the Ansible NGINX role to install NGINX OSS and NGINX Plus [here](https://github.com/nginxinc/ansible-role-nginx).
135
139
136
140
You can find the Ansible NGINX configuration role to configure NGINX [here](https://github.com/nginxinc/ansible-role-nginx-config).
0 commit comments