# Set up Repository on multi-node Cluster via Ansible

**URL:** <https://discuss.elastic.co/t/set-up-repository-on-multi-node-cluster-via-ansible/307358>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [June 16, 2022, 8:27am UTC](https://discuss.elastic.co/t/set-up-repository-on-multi-node-cluster-via-ansible/307358 "2022-06-16T08:27:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_j\_xx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_j_xx/32/98491_2.png) [@A\_j\_xx](https://discuss.elastic.co/u/A_j_xx)\
**Post date:** [June 16, 2022, 8:27am UTC](https://discuss.elastic.co/t/set-up-repository-on-multi-node-cluster-via-ansible/307358/1 "2022-06-16T08:27:58Z")

</div>

Hi all,  
There are some doubts which i need to clarify on urgent basis :

1. I know we can easily setup snapshot repository via kibana but what about from curl request ?  
Let us say i have multi node cluster , do i need to add repository to each node with seperate  
commands or by just adding repository to master node , the repository will be accessible to each node for snapshots
2. How to setup azure repository via ansible on multi node cluster ? Any scripts / documentation to refer ?
3. I need to write an ansible script to register SLM policies on es cluster , how do i proceed ?  
Do i need to register SLM policies on each node while setting it up , or only master node will work?  
Can anyone share similar script to setup ilm / slm policies on ES cluster via ansible

Thanks ,  
Hope to get an early response !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 14, 2022, 8:28am UTC](https://discuss.elastic.co/t/set-up-repository-on-multi-node-cluster-via-ansible/307358/2 "2022-07-14T08:28:38Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
