|
1 | | -Ansible NGINX Unit Role |
2 | | -======================= |
| 1 | +[](https://galaxy.ansible.com/nginxinc/nginx_unit) |
| 2 | +[](https://travis-ci.org/nginxinc/ansible-role-nginx-unit) |
| 3 | +[](https://opensource.org/licenses/Apache-2.0) |
| 4 | + |
| 5 | +# 👾 *Help make the NGINX config Ansible role better by participating in our [survey](https://forms.office.com/Pages/ResponsePage.aspx?id=L_093Ttq0UCb4L-DJ9gcUKLQ7uTJaE1PitM_37KR881UM0NCWkY5UlE5MUYyWU1aTUcxV0NRUllJSC4u)!* 👾 |
| 6 | + |
| 7 | +# Ansible NGINX Unit Role |
3 | 8 |
|
4 | 9 | This role installs NGINX Unit on your target host. |
5 | 10 |
|
6 | 11 | **Note:** This role is still in active development. There may be unidentified issues and the role variables may change as development continues. |
7 | 12 |
|
8 | | -Requirements |
9 | | ------------- |
10 | | - |
11 | | -**Ansible** |
| 13 | +## Requirements |
12 | 14 |
|
13 | | -This role was developed and tested with [maintained](https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#release-status) versions of Ansible. Backwards compatibility is not guaranteed. |
| 15 | +### Ansible |
14 | 16 |
|
15 | | -Instructions on how to install Ansible can be found in the [Ansible website](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html). |
| 17 | +* This role is developed and tested with [maintained](https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#release-status) versions of Ansible. Backwards compatibility is not guaranteed. |
| 18 | +* Instructions on how to install Ansible can be found in the [Ansible website](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html). |
16 | 19 |
|
17 | | -**Molecule** |
| 20 | +### Molecule |
18 | 21 |
|
19 | | -Molecule is used to test the various functionailities of the role. Instructions on how to install Molecule can be found in the [Molecule website](https://molecule.readthedocs.io/en/latest/installation.html). |
| 22 | +* Molecule `3.x` is used to test the various functionalities of the role. |
| 23 | +* Instructions on how to install Molecule can be found in the [Molecule website](https://molecule.readthedocs.io/en/latest/installation.html). |
20 | 24 |
|
21 | | -Installation |
22 | | ------------- |
| 25 | +## Installation |
23 | 26 |
|
24 | | -**Ansible Galaxy** |
| 27 | +### Ansible Galaxy |
25 | 28 |
|
26 | 29 | Use `ansible-galaxy install nginxinc.nginx_unit` to install the latest stable release of the role on your system. |
27 | 30 |
|
28 | | -**Git** |
| 31 | +### Git |
29 | 32 |
|
30 | 33 | Use `git clone https://github.com/nginxinc/ansible-role-nginx-unit.git` to pull the latest edge commit of the role from GitHub. |
31 | 34 |
|
32 | | -Platforms |
33 | | ---------- |
| 35 | +## Platforms |
34 | 36 |
|
35 | 37 | The NGINX Ansible role supports all platforms supported by [NGINX Unit](https://unit.nginx.org/installation/#official-packages): |
36 | 38 |
|
@@ -62,43 +64,44 @@ Ubuntu: |
62 | 64 | - focal |
63 | 65 | ``` |
64 | 66 |
|
65 | | -Role Variables |
66 | | --------------- |
| 67 | +## Role Variables |
67 | 68 |
|
68 | | -This role has multiple variables. The descriptions and defaults for all these variables can be found in the **`defaults/main`** directory in the following files: |
| 69 | +This role has multiple variables. The descriptions and defaults for all these variables can be found in the **[`defaults/main/`](https://github.com/nginxinc/ansible-role-nginx-unit/blob/main/defaults/main/)** folder in the following files: |
69 | 70 |
|
70 | | -- **[defaults/main/main.yml](https://github.com/nginxinc/ansible-role-nginx-unit/blob/main/defaults/main/main.yml):** NGINX Unit installation variables |
71 | | -- **[defaults/main/selinux.yml](https://github.com/nginxinc/ansible-role-nginx-unit/blob/main/defaults/main/unit.yml):** NGINX Unit SELinux variables |
72 | | -- **[defaults/main/bsd.yml](https://github.com/nginxinc/ansible-role-nginx-unit/blob/main/defaults/main/bsd.yml):** BSD specific installation variables |
| 71 | +|Name|Description| |
| 72 | +|----|-----------| |
| 73 | +|**[`defaults/main/main.yml`](https://github.com/nginxinc/ansible-role-nginx-unit/blob/main/defaults/main/main.yml)**|NGINX Unit installation variables| |
| 74 | +|**[`defaults/main/selinux.yml`](https://github.com/nginxinc/ansible-role-nginx-unit/blob/main/defaults/main/unit.yml)**|NGINX Unit SELinux variables| |
| 75 | +|**[`defaults/main/bsd.yml`](https://github.com/nginxinc/ansible-role-nginx-unit/blob/main/defaults/main/bsd.yml)**|BSD specific installation variables| |
73 | 76 |
|
74 | | -Example Playbooks |
75 | | ------------------ |
| 77 | +## Example Playbooks |
76 | 78 |
|
77 | | -A working functional playbook example can be found in the **`molecule/common`** directory in the following file: |
| 79 | +A working functional playbook example can be found in the **[`molecule/common/playbooks`](https://github.com/nginxinc/ansible-role-nginx-unit/blob/main/molecule/common/)** folder in the following file: |
78 | 80 |
|
79 | | -**[molecule/common/playbooks/default_converge.yml](https://github.com/nginxinc/ansible-role-nginx-unit/blob/master/molecule/common/playbooks/default_converge.yml):** Install NGINX Unit |
| 81 | +|Name|Description| |
| 82 | +|----|-----------| |
| 83 | +|**[`molecule/common/playbooks/default_converge.yml`](https://github.com/nginxinc/ansible-role-nginx-unit/blob/main/molecule/common/playbooks/default_converge.yml)**|Install NGINX Unit| |
80 | 84 |
|
81 | 85 | Do note that if you install this repository via Ansible Galaxy, you will have to replace the role variable in the sample playbooks from `ansible-role-nginx-unit` to `nginxinc.nginx_unit`. |
82 | 86 |
|
83 | | -Other NGINX Roles |
84 | | ------------------ |
| 87 | +## Other NGINX Ansible Collections and Roles |
85 | 88 |
|
86 | | -You can find an Ansible role to install and configure NGINX [here](https://github.com/nginxinc/ansible-role-nginx) |
| 89 | +You can find the Ansible NGINX Core collection of roles to install and configure NGINX Open Source, NGINX Plus, and NGINX App Protect [here](https://github.com/nginxinc/ansible-collection-nginx). |
87 | 90 |
|
88 | | -You can find an Ansible role to install and configure NGINX App Protect [here](https://github.com/nginxinc/ansible-role-nginx-app-protect) |
| 91 | +You can find the Ansible NGINX role to install NGINX [here](https://github.com/nginxinc/ansible-role-nginx). |
89 | 92 |
|
90 | | -You can find an Ansible collection of roles to install and configure NGINX Controller [here](https://github.com/nginxinc/ansible-collection-nginx_controller) |
| 93 | +You can find the Ansible NGINX configuration role to configure NGINX [here](https://github.com/nginxinc/ansible-role-nginx-config). |
91 | 94 |
|
92 | | -License |
93 | | -------- |
| 95 | +You can find the Ansible NGINX App Protect role to install and configure NGINX App Protect [here](https://github.com/nginxinc/ansible-role-nginx-app-protect). |
94 | 96 |
|
95 | | -[Apache License, Version 2.0](https://github.com/nginxinc/ansible-role-nginx/blob/main/LICENSE) |
| 97 | +You can find the Ansible NGINX Controller collection of roles to install and configure NGINX Controller [here](https://github.com/nginxinc/ansible-collection-nginx_controller). |
96 | 98 |
|
97 | | -Author Information |
98 | | ------------------- |
| 99 | +## License |
99 | 100 |
|
100 | | -[Alessandro Fael Garcia](https://github.com/alessfg) |
| 101 | +[Apache License, Version 2.0](https://github.com/nginxinc/ansible-role-nginx-unit/blob/main/LICENSE) |
| 102 | + |
| 103 | +## Author Information |
101 | 104 |
|
102 | | -[Tom Gamull](https://github.com/magicalyak) |
| 105 | +[Alessandro Fael Garcia](https://github.com/alessfg) |
103 | 106 |
|
104 | 107 | © [F5 Networks, Inc.](https://www.f5.com/) 2020 |
0 commit comments