clouds.yaml is searched on remote host, not on the machine where ansible is running #40056
Labels
affects_2.5
This issue/PR affects Ansible v2.5
bug
This issue/PR relates to a bug.
cloud
inventory
Inventory category
module
This issue/PR relates to a module.
openstack
support:community
This issue/PR relates to code supported by the Ansible community.
traceback
This issue/PR includes a traceback.
ISSUE TYPE
COMPONENT NAME
os_client_config
ANSIBLE VERSION
CONFIGURATION
$ ansible-config dump --only-changed
$
OS / ENVIRONMENT
Fedora 28, kernel 4.16.7-300.fc28.x86_64
SUMMARY
Thew clouds.yaml on the remote host and it will not be searched in the current folder of the ansible playbook, but remotely, on the host where the module is running. This is not explicitly documented and it might not be the desired behavior. I think the same issue is affecting #37784
This is affecting all Openstack modules, not only
os_client_config
.As a workaround, you can copy the
clouds.yaml
file into one of the following folders on the host where the module is running:~/
,~/.config/openstack
,/etc/openstack
Bellow is an excerpt of the output of
sudo strace -f -e file -p $(pgrep sshd) 2>&1 | less
which shows that the clouds.yaml is searched on the remote host.STEPS TO REPRODUCE
test_os.yml
clouds.yaml
ansible-playbook test_os.yml -i ,localhost
EXPECTED RESULTS
When I copy clouds.yaml on remote host:
I expected one of the following:
~/
,~/.config/openstack
,/etc/openstack
ACTUAL RESULTS
The error message is very confusing as it is not mentioning that clouds.yaml is not found.
The text was updated successfully, but these errors were encountered: