How graylog2/graylog-ansible-role works
This repository is an Ansible role for installing and configuring Graylog on Linux hosts. The main workflow is a playbook invoking the role, which prepares the host, installs/configures Graylog, and supplies service configuration; the README also documents optional Java installation and external OpenSearch and MongoDB dependencies. The task and template files were not excerpted, so internal task-to-task wiring is shown only as unverified dashed links; documented product relationships cite the README.
Main entry points: server.yml Graylog setup · main.yml Role entry · setup-Debian.yml OS setup · setup-RedHat.yml Red Hat setup
Components 17
Role orchestration
- Role entry
tasks/main.yml - OS setup
tasks/setup-Debian.yml - Red Hat setup
tasks/setup-RedHat.yml - Graylog setup
tasks/server.yml
Host configuration
- Role defaults
defaults/main.yml - Role variables
vars/main.yml - Debian variables
vars/Debian.yml - Red Hat variables
vars/RedHat.yml - Server config
templates/graylog.server.conf.j2 - Service defaults
templates/graylog.server.default.j2 - Service handlers
handlers/main.yml
Graylog dependencies
- Graylog server
- Java runtime
- OpenSearch
- MongoDB
Other components
- Playbook operator
- Linux host
Connections 16
- Playbook operator → Role entry: invokes role
README.md - Role entry → OS setup: selects setup
- Role entry → Graylog setup: configures server
- OS setup → Linux host: prepares host
- Red Hat setup → Linux host: prepares host
- Graylog setup → Graylog server: installs Graylog
README.md - Graylog setup → Server config: uses template
- Graylog setup → Service defaults: uses template
- Graylog setup → Service handlers: notifies service
- Graylog setup → Role defaults: reads settings
- Graylog setup → Role variables: reads settings
- OS setup → Debian variables: loads variables
- Red Hat setup → Red Hat variables: loads variables
- Graylog server → Java runtime: requires runtime
README.md - Graylog server → OpenSearch: depends on
README.md - Graylog server → MongoDB: depends on
README.md