warhorse.neo4j_docker
Ansible Neo4j (Docker)
Install Neo4j (Docker)
This role is part of the Warhorse Automation Framework and can be used with Warhorse or on its own.
Docker Image
You can find the Docker image here: docker-neo4j.
Role Variables
You can see all the variables in ./defaults/main.yml
.
neo4j_dir
: Directory for the Neo4j containerneo4j_docker_version
: Version of the Docker imageneo4j_ports
: Ports for the Neo4j containerneo4j_hostname
: Hostname for the Neo4j containerneo4j_container_name
: Name of the Neo4j containerneo4j_username
: Username for Neo4jneo4j_password
: Password for Neo4jneo4j_docker_network
: Docker network for the Neo4j container
Dependencies
Run the following command to install required dependencies:
ansible-galaxy install geerlingguy.docker geerlingguy.pip
Install
To install the Neo4j Docker role, use the command:
ansible-galaxy install warhorse.neo4j_docker
Example Playbook
Here’s an example of how to include the role in a playbook:
- hosts: servers
roles:
- { role: warhorse.neo4j_docker }
Example Variables
Here's an example of how to set the variables:
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
This role is licensed under MIT/BSD.
Author Information
Created by Ralph May.