Mohammed Naser | b7b97d6 | 2022-03-12 16:30:00 -0500 | [diff] [blame] | 1 | # 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 Naser | d939b31 | 2023-02-18 19:38:49 +0000 | [diff] [blame] | 15 | - 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 Naser | 558a229 | 2023-03-02 23:00:38 +0100 | [diff] [blame] | 23 | repo: "{{ openstack_cli_cloud_archive_repo }}" |
Mohammed Naser | d939b31 | 2023-02-18 19:38:49 +0000 | [diff] [blame] | 24 | state: present |
| 25 | when: ansible_distribution_release == "focal" |
| 26 | |
Mohammed Naser | b7b97d6 | 2022-03-12 16:30:00 -0500 | [diff] [blame] | 27 | - 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 Sutkaitis | 4ace418 | 2023-02-27 04:31:52 +0200 | [diff] [blame] | 45 | mode: "0600" |