Ansible role for Nginx Proxy Manager v2.10.3.
a simple way to add a new proxy host via ansible playbook. Checked for version v2.10.3.
module: nginx-proxy-manager-ansible description: a simple way to add a new proxy host or to delete via ansible playbook
This role requires Ansible 2.7 or higher, Docker and Docker-Compose.
Change and update a docker-compose.yml file. Bring up your stack by running docker-compose, further info here.
-
npm_api_url
- IP for the Nginx Proxy Manager REST API. Default tohttp://192.168.1.5:81/api
. -
npm_user
- User to authenticate the Nginx Proxy Manager REST API. -
npm_password
- Password to authenticate the Nginx Proxy Manager REST API. -
npm_access_token
- Tokens are required to authenticate against the API. -
npm_api_domain_name
- Domain Names are required to create the Proxy host. -
npm_api_host
- Forward Hostname / IP are required to create the Proxy host. -
npm_api_ssl_forced
- Is SSL Forced? Default isFalse
. -
npm_api_create_host
- IWhether to create (present), or no a proxy host. Default isFalse
.
See the defaults/main.yml
or vars/*.yml
file listing all possible options which you can be passed to a runner registration command.
- name: NPM - create proxy host
hosts: localhost
gather_facts: no
roles:
- role: npm-management
npm_api_domain_name: "site-2.example.com"
npm_api_host: "172.16.1.2"
npm_api_ssl_forced: True
npm_api_create_host: True