Ansible Nginx (Docker)

CI warhorse.nginx_docker warhorse.nginx_docker warhorse.nginx_docker License Commit

Nginx Logo

Install Nginx (Docker)

This role is part of the Warhorse Automation Framework. This role can be used with Warhorse or as a standalone role.

Docker Image

nginx

Role Variables

A list of all the variables can be found in ./defaults/main.yml.

nginx_dir - Nginx container directory

nginx_docker_version - Nginx image version

nginx_ports - Nginx container ports

nginx_hostname - Nginx container hostname

nginx_container_name - Nginx container name

nginx_docker_image - Neo4j username

neo4j_password - Neo4j password

nginx_docker_network neo4j container docker network

Dependencies

ansible-galaxy install geerlingguy.docker geerlingguy.pip

Install

ansible-galaxy install warhorse.nginx_docker

Example Playbook

- hosts: servers
  roles:
      - { role: warhorse.nginx_docker }

Example Vars

neo4j_hostname: "neo4j"
neo4j_container_name: "neo4j"
neo4j_docker_version: "latest"
neo4j_username: "neo4j"
neo4j_password: "password"
neo4j_docker_labels: {}
neo4j_docker_network: "neo4j"
neo4j_dir: '/opt/docker/neo4j'
neo4j_ports:
  - "7474:7474"
  - "7687:7687"

License

MIT/BSD

Author Information

Ralph May