blob: 37ef1842ecfb9d165be78a239629aab5ffb60a00 [file] [log] [blame]
Tadas Sutkaitis7a286582024-05-01 02:12:08 +03001# Copyright (c) 2024 VEXXHOST, Inc.
Mohammed Naserb7b97d62022-03-12 16:30:00 -05002#
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
Tadas Sutkaitis7a286582024-05-01 02:12:08 +030015- name: Uninstall OpenStack client system packages
16 ansible.builtin.package:
17 name: "{{ openstack_cli_packages }}"
18 state: absent
19 when: ansible_facts['os_family'] in ['Debian']
20
21- name: Uninstall Ubuntu Cloud Archive keyring
Mohammed Naserd939b312023-02-18 19:38:49 +000022 ansible.builtin.apt:
23 name: ubuntu-cloud-keyring
Tadas Sutkaitis7a286582024-05-01 02:12:08 +030024 state: absent
25 when: ansible_facts['os_family'] in ['Debian']
Mohammed Naserd939b312023-02-18 19:38:49 +000026
Tadas Sutkaitis7a286582024-05-01 02:12:08 +030027- name: Remove Ubuntu Cloud Archive repository
Mohammed Naserd939b312023-02-18 19:38:49 +000028 ansible.builtin.apt_repository:
29 filename: ubuntu-cloud-archive
Mohammed Naser558a2292023-03-02 23:00:38 +010030 repo: "{{ openstack_cli_cloud_archive_repo }}"
Tadas Sutkaitis7a286582024-05-01 02:12:08 +030031 state: absent
32 when: ansible_facts['os_family'] in ['Debian']
Mohammed Naserb7b97d62022-03-12 16:30:00 -050033
34- name: Generate OpenStack-Helm endpoints
35 ansible.builtin.include_role:
36 name: openstack_helm_endpoints
37 vars:
38 openstack_helm_endpoints_list: ["identity"]
39
40- name: Generate openrc file
41 become: true
42 ansible.builtin.template:
43 src: openrc.j2
44 dest: /root/openrc
45 owner: root
46 group: root
Tadas Sutkaitis4ace4182023-02-27 04:31:52 +020047 mode: "0600"
Tadas Sutkaitis7a286582024-05-01 02:12:08 +030048
49- name: Generate openstack aliases
50 become: true
51 ansible.builtin.template:
52 src: atmosphere.sh.j2
53 dest: /etc/profile.d/atmosphere.sh
54 owner: root
55 group: root
56 mode: "0644"