U
U
un1t2015-10-27 20:55:53
Python
un1t, 2015-10-27 20:55:53

How to specify server id in Ansible?

I have several replicas.
In configs it is necessary to specify something like
sever-id = 1.
Each host has its own id.
Well, i.e. depending on ip or in some other way.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-10-27
@un1t

Create a server_id variable, for example, and define this variable for each host in the inventory file.

P
Puma Thailand, 2015-10-28
@opium

It's easier then to pull the server number in the group

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question