Files
playbooks/nats
2026-10-18 16:08:07 +00:00
..
2026-08-29 12:31:09 +00:00
2026-10-18 16:08:07 +00:00
2026-08-29 12:31:09 +00:00

NATS with JetStream

This playbook will set up a NATS server with JetStream enabled using Docker.

Settings

  • container_name: name of the NATS container.
  • container_image: image to use for the NATS container.
  • data_location: host path for persistent data directory (default: /var/lib/nats).

Running this Playbook

1. Customize Options

nano vars/default.yml
#vars/default.yml
---
container_name: nats
container_image: nats:latest
data_location: /var/lib/nats

2. Run the Playbook

ansible-playbook -l [target] -i [inventory file] -u [remote user] playbook.yml