NATS.io is a simple, secure, and high-performance open source messaging system for cloud-native applications, IoT messaging, and microservices architectures. This Ansible role installs it and then provide its configuration.
# requirments.yaml
- src: [email protected]:snapp-cab/ansible-role-nats.git
scm: git
version: main
name: nats
nats_version: "2.1.6"
nats_host_group: "core"
nats_gateway_host_groups: []
nats_exporter_enabled: "true"
nats_prometheus_exporter_version: "0.6.2"
Please note that this Ansible provides a cluster installation of NATS, so you must group your hosts into the cluster and nats_host_group
specifies the cluster.
- hosts: some_servers
vars:
nats_version: "2.1.6"
nats_host_group: "some_servers"
nats_exporter_enabled: "true"
nats_prometheus_exporter_version: "0.6.2"
roles:
- nats