Skip to content

Files

Latest commit

travisamartinlamATnginxmjangJTorreGADubhlaoich
Mar 19, 2025
3229349 · Mar 19, 2025

History

History
77 lines (54 loc) · 3.05 KB
·

File metadata and controls

77 lines (54 loc) · 3.05 KB
·
docs title toc weight type
DOCS-1248
Install with Ansible
true
200
how-to

{{< include "/nim/decoupling/note-legacy-nms-references.md" >}}

Introduction

This guide explains how to install F5 NGINX Instance Manager using the open-source Ansible role.

With Ansible, you can automate and replicate your installation across multiple environments.

{{< call-out "tip" "Open-Source Project on GitHub" "fa-brands fa-github" >}} The steps in this guide refer to the Ansible NGINX Instance Manager Role project on GitHub. {{< /call-out >}}


Overview

The Ansible role for NGINX Instance Manager simplifies the installation process by installing all the prerequisites and any modules you specify.

{{< img src="img/iac/ansible-flow.png" caption="Figure 1. NGINX Instance Manager Ansible flow" alt="A diagram showing the installation flow of the NGINX Instance Manager Ansible role, with four steps: installing NGINX, installing ClickHouse, adding the NGINX Instance Manager repository, and installing the NGINX Instance Manager module(s).">}}


System requirements

  • The Ansible role requirements can be viewed on GitHub.

Installation steps

  1. Install Ansible by following the installation steps on GitHub.

  2. Create the inventory file with the details of the host you want to install NGINX Instance Manager on. Make sure you have access to the host. Example here.

  3. Create the requirements file and install the required Ansible role by following these steps.

  4. Create and run the Ansible playbook. Create a file named nms-playbook.yml (or any other name) with contents similar to the following example:

    - hosts: nms
      become: yes
      vars:
        nginx_license:
          certificate: ./nginx-repo.crt
          key: ./nginx-repo.key
        nms_setup: install
        nms_version: 2.16.0*
        nms_user_name: admin
        nms_user_passwd: default
        nms_modules:
          - name: sm
      collections:
        - nginxinc.nginx_core
      roles:
        - nginxinc.nginx_management_suite
  5. Run the playbook:

    ansible-playbook -i <path-to-your-hostfile> nms-playbook.yml

{{< see-also >}} For a comprehensive list of configuration options, view the default main.yaml file on GitHub. {{< /see-also >}}


Getting support

If you need help or have questions, you can request support from the NGINX Instance Manager Ansible Role Project on GitHub.