Skip to content

Commit 7e22280

Browse files
committed
update Readme for role
1 parent f97bf92 commit 7e22280

File tree

1 file changed

+38
-8
lines changed

1 file changed

+38
-8
lines changed

roles/npm-management/README.md

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,36 @@
1-
Role Name
1+
## NPM-MANAGEMENT
2+
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.
25
=========
36

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
511

612
Requirements
713
------------
814

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).
1018

1119
Role Variables
1220
--------------
1321

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+
1534

1635
Dependencies
1736
------------
@@ -23,9 +42,18 @@ Example Playbook
2342

2443
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
2544

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+
```
2957
3058
License
3159
-------
@@ -35,4 +63,6 @@ BSD
3563
Author Information
3664
------------------
3765
38-
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
66+
https://github.com/DenAV
67+
68+

0 commit comments

Comments
 (0)