alex27riva / nginx-proxy-manager-ansible

a simple way to add a new proxy host via ansible playbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Description

module: nginx-proxy-manager-ansible description: a simple way to add a new proxy host or to delete via ansible playbook

Requirements

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.

Role Variables

  • npm_api_url - IP for the Nginx Proxy Manager REST API. Default to http://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 is False.

  • npm_api_create_host - IWhether to create (present), or no a proxy host. Default is False.

See the defaults/main.yml or vars/*.yml file listing all possible options which you can be passed to a runner registration command.

Example Playbook

- 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

About

a simple way to add a new proxy host via ansible playbook


Languages

Language:JavaScript 80.2%Language:Python 19.8%