Set ANSIBLE_LOCAL_TEMP to /tmp to prevent remote_tmp warnings
Configure ANSIBLE_LOCAL_TEMP to avoid permission issues with Ansible temporary directories. This prevents Ansible to issue a Warning that remote_tmp does not exist, as well as avoid potential failures during privelege escalation through become. We already witness failures for molecule with current default for RockyLinux 9 [1] [1] https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/966150 Change-Id: Icb59ab758601096fc4f6c89fbb6d41f156f06d9d Signed-off-by: Dmitriy Chubinidze <dcu995@gmail.com>
This commit is contained in:
committed by
Dmitriy Rabotyagov
parent
c0edac45ad
commit
32fa1f68de
@@ -0,0 +1,5 @@
|
||||
---
|
||||
other:
|
||||
- |
|
||||
Default value of ``ANSIBLE_LOCAL_TEMP`` was set to ``/tmp`` folder, instead
|
||||
of the default value ``ANSIBLE_HOME ~ "/tmp"``.
|
||||
@@ -27,6 +27,8 @@ export ANSIBLE_ROLES_PATH="${ANSIBLE_ROLES_PATH:-/etc/ansible/roles:/etc/ansible
|
||||
|
||||
export ANSIBLE_COLLECTIONS_PATH="${ANSIBLE_COLLECTIONS_PATH:-/etc/ansible}"
|
||||
|
||||
export ANSIBLE_LOCAL_TEMP="${ANSIBLE_LOCAL_TEMP:-/tmp}"
|
||||
|
||||
export ANSIBLE_LIBRARY="${ANSIBLE_LIBRARY:-/etc/ansible/roles/ceph-ansible/library}"
|
||||
export ANSIBLE_FILTER_PLUGINS="${ANSIBLE_FILTER_PLUGINS:-/etc/ansible/roles/ceph-ansible/plugins/filter}"
|
||||
export ANSIBLE_CALLBACK_PLUGINS="${ANSIBLE_CALLBACK_PLUGINS:-/etc/ansible/roles/ceph-ansible/plugins/callback}"
|
||||
|
||||
Reference in New Issue
Block a user