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
Ansible role for [Nginx Proxy Manager v2.9.18](https://github.com/NginxProxyManager/nginx-proxy-manager/tree/v2.9.18).
3
+
a simple way to add a new proxy host via ansible playbook.
4
+
Checked for version v2.9.18.
2
5
=========
3
6
4
-
A brief description of the role goes here.
7
+
description
8
+
-----------
9
+
10
+
a simple way to add a new proxy host or to delete via ansible playbook
5
11
6
12
Requirements
7
13
------------
8
14
9
-
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
15
+
This role requires Ansible 2.7 or higher, Docker and Docker-Compose.
16
+
17
+
Change and update a [docker-compose.yml](https://github.com/DenAV/nginx-proxy-manager-ansible/blob/main/docker/docker-compose_npm.yml) file. Bring up your stack by running docker-compose, further info [here](https://github.com/DenAV/nginx-proxy-manager-ansible/tree/main/docker).
10
18
11
19
Role Variables
12
20
--------------
13
21
14
-
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
22
+
-`npm_api_url` - IP for the Nginx Proxy Manager REST API. Default to `http://192.168.1.5:81/api`.
23
+
-`npm_user` - User to authenticate the Nginx Proxy Manager REST API.
24
+
-`npm_password` - Password to authenticate the Nginx Proxy Manager REST API.
25
+
-`npm_access_token` - Tokens are required to authenticate against the API.
26
+
27
+
-`npm_api_domain_name` - Domain Names are required to create the Proxy host.
28
+
-`npm_api_host` - Forward Hostname / IP are required to create the Proxy host.
29
+
-`npm_api_ssl_forced` - Is SSL Forced? Default is `False`.
30
+
-`npm_api_create_host` - IWhether to create (present), or no a proxy host. Default is `False`.
31
+
32
+
See the [`defaults/main.yml`](https://github.com/DenAV/nginx-proxy-manager-ansible/blob/main/roles/npm-management/defaults/main.yml) or [`vars/*.yml`](https://github.com/DenAV/nginx-proxy-manager-ansible/tree/main/roles/npm-management/vars) file listing all possible options which you can be passed to a runner registration command.
33
+
15
34
16
35
Dependencies
17
36
------------
@@ -23,9 +42,18 @@ Example Playbook
23
42
24
43
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
25
44
26
-
- hosts: servers
27
-
roles:
28
-
- { role: username.rolename, x: 42 }
45
+
```yaml
46
+
- name: NPM - create proxy host
47
+
hosts: localhost
48
+
gather_facts: no
49
+
50
+
roles:
51
+
- role: npm-management
52
+
npm_api_domain_name: "site-2.example.com"
53
+
npm_api_host: "172.16.1.2"
54
+
npm_api_ssl_forced: True
55
+
npm_api_create_host: True
56
+
```
29
57
30
58
License
31
59
-------
@@ -35,4 +63,6 @@ BSD
35
63
Author Information
36
64
------------------
37
65
38
-
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
0 commit comments