default.inv: Add note about problems with mixing hostnames/IP addresses 99/65299/1
authorRadoslaw Jablonski <radoslawx.jablonski@intel.com>
Tue, 20 Nov 2018 14:45:07 +0000 (14:45 +0000)
committerRadoslaw Jablonski <radoslawx.jablonski@intel.com>
Wed, 21 Nov 2018 08:59:11 +0000 (08:59 +0000)
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 <radoslawx.jablonski@intel.com>
Change-Id: I2cd1ea293fadfb12f78c03028cafec993dadbe2d

docker/ansible/default.inv

index a5a092d..9319b9e 100644 (file)
@@ -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