# 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 ```shell nano vars/default.yml ``` ```yml #vars/default.yml --- container_name: nats container_image: nats:latest data_location: /var/lib/nats ``` ### 2. Run the Playbook ```command ansible-playbook -l [target] -i [inventory file] -u [remote user] playbook.yml ```