blob: d0e8e2b30e65a892ff0d98314e5ce61a4254a0d3 [file] [log] [blame]
Mohammed Naserb7b97d62022-03-12 16:30:00 -05001# 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
Mohammed Naserd939b312023-02-18 19:38:49 +000015- name: Install Ubuntu Cloud Archive keyring
16 ansible.builtin.apt:
17 name: ubuntu-cloud-keyring
18 state: present
19
20- name: Add latest Ubuntu Cloud Archive repository
21 ansible.builtin.apt_repository:
22 filename: ubuntu-cloud-archive
Mohammed Naser558a2292023-03-02 23:00:38 +010023 repo: "{{ openstack_cli_cloud_archive_repo }}"
Mohammed Naserd939b312023-02-18 19:38:49 +000024 state: present
25 when: ansible_distribution_release == "focal"
26
Mohammed Naserb7b97d62022-03-12 16:30:00 -050027- name: Install OpenStack client
28 become: true
29 ansible.builtin.apt:
30 name: "{{ openstack_cli_packages }}"
31
32- name: Generate OpenStack-Helm endpoints
33 ansible.builtin.include_role:
34 name: openstack_helm_endpoints
35 vars:
36 openstack_helm_endpoints_list: ["identity"]
37
38- name: Generate openrc file
39 become: true
40 ansible.builtin.template:
41 src: openrc.j2
42 dest: /root/openrc
43 owner: root
44 group: root
Tadas Sutkaitis4ace4182023-02-27 04:31:52 +020045 mode: "0600"