tempest: try to find clouds.yaml in /etc/openstack
If the clouds.yaml can't be found in ~/.config/openstack, it can also be in /etc/openstack. This is useful for https://review.opendev.org/#/c/696390/. Change-Id: Ic7cfdb28647fa5addb3e6561cc5a1701f6848645
This commit is contained in:
parent
7e9265f798
commit
4017ebcdca
@ -19,13 +19,23 @@
|
||||
mode: 0700
|
||||
become: true
|
||||
|
||||
- name: Copy clouds.yaml file from user's home to /root directory
|
||||
- name: Copy clouds.yaml file to /root directory
|
||||
block:
|
||||
- name: Copy clouds.yaml file from user's home to /root directory
|
||||
copy:
|
||||
src: '{{ ansible_user_dir }}/.config/openstack/clouds.yaml'
|
||||
remote_src: true
|
||||
dest: '/root/.config/openstack/clouds.yaml'
|
||||
mode: 0600
|
||||
become: true
|
||||
rescue:
|
||||
- name: Copy clouds.yaml file /etc/openstack to /root directory
|
||||
copy:
|
||||
src: '/etc/openstack/clouds.yaml'
|
||||
remote_src: true
|
||||
dest: '/root/.config/openstack/clouds.yaml'
|
||||
mode: 0600
|
||||
become: true
|
||||
|
||||
- name: Set network vars
|
||||
set_fact:
|
||||
|
Loading…
Reference in New Issue
Block a user