# Ansible Setup

**URL:** <https://discuss.elastic.co/t/ansible-setup/307472>\
**Category:** Elasticsearch\
**Created:** [June 17, 2022, 5:50am UTC](https://discuss.elastic.co/t/ansible-setup/307472 "2022-06-17T05:50:55Z")\
**Posts on this page:** 3\
**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 17, 2022, 5:50am UTC](https://discuss.elastic.co/t/ansible-setup/307472/1 "2022-06-17T05:50:55Z")

</div>

Continuing the discussion from [Set up Repository on multi-node Cluster via Ansible]  
Hi all ,  
Please have a look at this post  
([Set up Repository on multi-node Cluster via Ansible](https://discuss.elastic.co/t/set-up-repository-on-multi-node-cluster-via-ansible/307358)):

```auto
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:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 17, 2022, 6:47am UTC](https://discuss.elastic.co/t/ansible-setup/307472/2 "2022-06-17T06:47:30Z")

</div>

Please don't post the same question more than once 🙂

> [@Set up Repository on multi-node Cluster via Ansible](https://discuss.elastic.co/t/set-up-repository-on-multi-node-cluster-via-ansible/307358):
>
> Hi all, There are some doubts which i need to clarify on urgent basis : 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 How to setup azure repository via ansible on multi node cluster ? Any scripts / documentation to refer ? I need to write…

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 17, 2022, 6:47am UTC](https://discuss.elastic.co/t/ansible-setup/307472/3 "2022-06-17T06:47:33Z")

</div>


