3eb9d79a1a
inventory_hostname is not reliable to be used as container_name. When delegating in 2.6+, the inventory_hostname of the delegating host is passed to the connection plugin, additionally when a host doesn't have its own container_name variable a cached inventory_hostname is used in its place. To get the connection plugin working with Ansible 2.6 this change essentially allows the container_check to fall through when delegating to physical hosts or hosts not in the inventory by: - removing inventory_hostname as a fallback for container_name - unsetting container_name when delegating to a known physical host - unsetting container_name when delegating to a host not mentioned in the inventory container_name can no longer be used as a group variable based on inventory_hostname, it will need to be an inventory/host variable for each individual host. Also, when container_user is used the remote_tmp path needs to be set to a system writable directory instead of the root user's home. Change-Id: If2eb4c16273e19599f6ec3f0cba6b3573912c6a0
7 lines
176 B
YAML
7 lines
176 B
YAML
---
|
|
issues:
|
|
- |
|
|
When using the connection plugin's ``container_user`` option,
|
|
``ansible_remote_tmp`` should be set to a system writable path
|
|
such as '/var/tmp/'.
|