blob: 724f291a93e98d7ebb92cc963f7bd9f195a5fddf [file] [log] [blame]
okozachenko0c48e9c2022-05-19 01:57:57 +10001# Copyright (c) 2022 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
okozachenko0c48e9c2022-05-19 01:57:57 +100015- name: Install openstacksdk
16 ansible.builtin.pip:
Mohammed Naserd73d8692022-05-20 16:52:59 -040017 name: openstacksdk==0.61.0
okozachenko0c48e9c2022-05-19 01:57:57 +100018
19- name: Create openstack config directory
20 become: true
21 ansible.builtin.file:
22 path: /etc/openstack
23 state: directory
24 owner: root
25 group: root
Mohammed Naserc8e1a452022-08-11 16:16:13 -040026 mode: "0600"
okozachenko0c48e9c2022-05-19 01:57:57 +100027
28- name: Generate cloud config file
29 become: true
30 ansible.builtin.template:
31 src: clouds.yaml.j2
32 dest: /etc/openstack/clouds.yaml
33 owner: root
34 group: root
35 mode: '0600'