From 1e6ea0a6240327c73de60f015e28a3bd24465352 Mon Sep 17 00:00:00 2001 From: Radoslaw Jablonski Date: Tue, 20 Nov 2018 14:45:07 +0000 Subject: default.inv: Add note about problems with mixing hostnames/IP addresses Added a note about risks with mixing IP addresses and hostnames in inventory file. If the same host will be called in inventory file using both its hostname and IP address then problems may occur during step where dependencies are installed (ansible thinks that there are 2 independent hosts and will try install dependencies for both of them in the same time - it may fail be because of apt/yum synchronization locks). Signed-off-by: Radoslaw Jablonski Change-Id: I2cd1ea293fadfb12f78c03028cafec993dadbe2d --- docker/ansible/default.inv | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docker') diff --git a/docker/ansible/default.inv b/docker/ansible/default.inv index a5a092dc..9319b9ea 100644 --- a/docker/ansible/default.inv +++ b/docker/ansible/default.inv @@ -1,3 +1,12 @@ +# NOTE: for defining hosts both hostnames and IP addresses forms can be used +# however it is advised to keep it consistent over the file, especially if +# the same host is used by multiple containers +# e.g. if some host will be described by IP address at first('127.0.0.1') +# and at some place the same host will be called using its hostname +# ('localhost') then ansible will treat them as different entities and +# synchronization problems during parallel dependencies installation +# may occur) + [collectd_hosts] localhost -- cgit 1.2.3-korg