Correct filename of clouds.yml to clouds.yaml
According to the python-openstackclient doc, the correct filename is clouds.yaml. See http://docs.openstack.org/developer/python-openstackclient/configuration.html for details. Change-Id: If7dea05f6787b4dc94369d5f1a6db8dd20741697
This commit is contained in:
parent
7e759bc93b
commit
38ef6fc90c
|
@ -37,6 +37,6 @@ openrc_file_group: "{{ ansible_user_id }}"
|
|||
openrc_openstack_client_config_dir_dest: "{{ ansible_env.HOME }}/.config/openstack"
|
||||
openrc_openstack_client_config_dir_owner: "{{ ansible_user_id }}"
|
||||
openrc_openstack_client_config_dir_group: "{{ ansible_user_id }}"
|
||||
openrc_clouds_yml_file_dest: "{{ openrc_openstack_client_config_dir_dest }}/clouds.yml"
|
||||
openrc_clouds_yml_file_dest: "{{ openrc_openstack_client_config_dir_dest }}/clouds.yaml"
|
||||
openrc_clouds_yml_file_owner: "{{ ansible_user_id }}"
|
||||
openrc_clouds_yml_file_group: "{{ ansible_user_id }}"
|
||||
|
|
|
@ -33,9 +33,9 @@
|
|||
tags:
|
||||
- openstack-openrc-file
|
||||
|
||||
- name: Create clouds.yml file
|
||||
- name: Create clouds.yaml file
|
||||
template:
|
||||
src: clouds.yml
|
||||
src: clouds.yaml.j2
|
||||
dest: "{{ openrc_clouds_yml_file_dest }}"
|
||||
owner: "{{ openrc_clouds_yml_file_owner }}"
|
||||
group: "{{ openrc_clouds_yml_file_group }}"
|
||||
|
|
|
@ -32,3 +32,11 @@
|
|||
assert:
|
||||
that:
|
||||
- "openrc_file.stat.exists"
|
||||
- name: Check /root/.config/openstack/clouds.yaml file
|
||||
stat:
|
||||
path: /root/.config/openstack/clouds.yaml
|
||||
register: clouds_file
|
||||
- name: Check role functions
|
||||
assert:
|
||||
that:
|
||||
- "clouds_file.stat.exists"
|
Loading…
Reference in New Issue