blob: 67e0b01d566d301a6e46893ace6374af8ec0d37e [file] [log] [blame]
Biser Milanov94d0dbd2023-08-04 18:00:22 +03001---
2- hosts: undercloud-client, lab-sp-a1
Biser Milanovdd597bc2023-05-12 17:42:11 +03003 tasks:
4 # TODO: To be removed once DNS starts working again.
5 - name: Provision systemd-resovled Configuration
6 no_log: true
7 become: true
8 ansible.builtin.copy:
9 content: "{{ RESOLVED_DATA['v'] }}"
10 dest: /etc/systemd/resolved.conf
11
12 - name: Restart systemd-resolved
13 become: true
14 ansible.builtin.service:
15 name: systemd-resolved
16 state: restarted
17
Biser Milanov94d0dbd2023-08-04 18:00:22 +030018- hosts: undercloud-client
19 vars_files:
20 - vars.yaml
21 tasks:
Biser Milanovdd597bc2023-05-12 17:42:11 +030022 - name: Ensure OpenStack Credentials Directory Exists
23 ansible.builtin.file:
24 path: "{{ os_creds_dir }}"
25 state: directory
26 mode: '0700'
27 recurse: true
28
29 - name: Provision OpenStack Credentials
30 no_log: true
31 ansible.builtin.copy:
32 content: "{{ OPENSTACK_DATA['v'] }}"
33 dest: "{{ os_creds_path }}"
34 mode: '0600'
35
36 - name: Install python3-pip
37 become: true
38 ansible.builtin.apt:
39 name: python3-pip
40 update_cache: yes
41
42 - name: Install virtualenv
43 become: true
44 ansible.builtin.pip:
45 name: virtualenv
46 executable: pip3
47
48 - name: Create an OpenStack CLI Venv
49 ansible.builtin.pip:
50 name: python-openstackclient
51 virtualenv: "{{ os_venv }}"