Giter Club home page Giter Club logo

ansible-collection-nginx_controller's Introduction

Ansible Collection - nginx.nginx_controller

This collection contains all the roles maintained to support NGINX Controller 3.0 and later.

It includes:

Use guidelines

Install this collection locally:

ansible-galaxy collection install nginxinc.nginx_controller -p ./collections

Then you can use the roles from the collection in your playbooks / plays:

---
- hosts: nginx_instances

    collections:
    - nginxinc.nginx_controller

    roles:
    - role: nginx
        vars:
        nginx_enable: true
        nginx_start: true
        nginx_type: plus

    - role: nginx_controller_generate_token
        vars:
          nginx_controller_fqdn: controller.example.local
          nginx_controller_user_email: [email protected]
          nginx_controller_user_password: Secur3P@ssw0rd

    - role: nginx_controller_agent
        vars:
          nginx_controller_fqdn: controller.example.local

It is possible to be more explicit. For example a fully-qualified role name such as nginxinc.nginx_controller.nginx instead of nginx is helpful if you maintain a different nginx role on your local workstation at a different local path.

Reference the Collection at the start of a playbook:

---
- hosts: localhost
  gather_facts: no
  collections:
  - nginxinc.nginx_controller

  tasks:
  - name: load the vars.yaml 
    include_vars: "{{ playbook_dir }}/vars.yaml"

Using requirements.yaml

/collections/requirements.yml

---
collections:
- name: nginxinc.nginx_controller
  #version: 3.3.1

Author

Brian Ehlert

Daniel Edgar

ansible-collection-nginx_controller's People

Contributors

aknot242 avatar brianehlert avatar thedoubl3j avatar tuxinvader avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.