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: README.md
+11
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,8 @@ This role configures NGINX Open Source and NGINX Plus on your target host.
26
26
version: 3.8.0
27
27
- name: ansible.posix
28
28
version: 1.3.0
29
+
- name: community.docker # Only required if you plan to use Molecule (see below)
30
+
version: 2.0.0
29
31
```
30
32
31
33
**Note:** You can alternatively install the Ansible community distribution (what is known as the "old" Ansible) if you don't want to manage individual collections.
@@ -40,6 +42,15 @@ This role configures NGINX Open Source and NGINX Plus on your target host.
40
42
41
43
* Molecule is used to test the various functionalities of the role. The recommended version of Molecule to test this role is `3.3`.
42
44
* 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._
45
+
* To run the NGINX Plus/App Protect config Molecule tests, you must copy your NGINX Plus/App Protect license to the role's [`files/license`](https://github.com/nginxinc/ansible-role-nginx-config/blob/main/files/license/) folder.
46
+
47
+
You can alternatively add your NGINX Plus/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:
48
+
49
+
```bash
50
+
export NGINX_CRT=$( cat <path to your certificate file> | base64 )
51
+
export NGINX_KEY=$( cat <path to your key file> | base64 )
0 commit comments