blob: 5f082a1ef150b46a31afbb27f63a0cff6b4a5bf7 [file] [log] [blame]
Tadas Sutkaitis7a286582024-05-01 02:12:08 +03001# Copyright (c) 2024 VEXXHOST, Inc.
okozachenko0c48e9c2022-05-19 01:57:57 +10002#
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:
Tadas Sutkaitis7a286582024-05-01 02:12:08 +030017 name: openstacksdk
Mohammed Naser8ccabb62025-02-05 13:20:09 -050018 version: "{{ openstacksdk_version | default(omit) }}"
okozachenko0c48e9c2022-05-19 01:57:57 +100019
20- name: Create openstack config directory
21 become: true
22 ansible.builtin.file:
23 path: /etc/openstack
24 state: directory
25 owner: root
26 group: root
Mohammed Naserc8e1a452022-08-11 16:16:13 -040027 mode: "0600"
okozachenko0c48e9c2022-05-19 01:57:57 +100028
29- name: Generate cloud config file
30 become: true
31 ansible.builtin.template:
32 src: clouds.yaml.j2
33 dest: /etc/openstack/clouds.yaml
34 owner: root
35 group: root
Tadas Sutkaitis7a286582024-05-01 02:12:08 +030036 mode: "0600"