diff options
authorRadoslaw Jablonski <radoslawx.jablonski@intel.com>2018-11-20 14:45:07 +0000
committerRadoslaw Jablonski <radoslawx.jablonski@intel.com>2018-11-21 08:59:11 +0000
commit1e6ea0a6240327c73de60f015e28a3bd24465352 (patch)
parent8e53f9532b51c175c6a31a02650d64bda4b5f728 (diff)
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 <radoslawx.jablonski@intel.com> Change-Id: I2cd1ea293fadfb12f78c03028cafec993dadbe2d
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/ansible/default.inv b/docker/ansible/default.inv
index a5a092d..9319b9e 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('')
+# 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)