Initial commit
[ta/infra-ansible.git] / playbooks / root-openstack-admin-credentials.yml
1 #cmframework.requires: os-keystone-install.yml
2 ---
3
4 # Copyright 2019 Nokia
5
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #     http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17
18 # Create openstack credentials for root
19
20 - name: Setup root openstack credentials
21   hosts: base:!vnf-nodes
22   roles:
23     - role: "openstack_openrc"
24       vars:
25           ## Create openrc file
26           openrc_file_dest: "/root/openrc"
27           openrc_file_owner: "root"
28           openrc_file_group: "root"
29
30           ## Create clouds.yml file
31           openrc_openstack_client_config_dir_dest: "/root/.config/openstack"
32           openrc_openstack_client_config_dir_owner: "root"
33           openrc_openstack_client_config_dir_group: "root"
34           openrc_clouds_yml_file_dest: "/root/.config/openstack/clouds.yaml"
35           openrc_clouds_yml_file_owner: "root"
36           openrc_clouds_yml_file_group: "root"
37