Removing dbus-python deps because now a-c-k handles that. Depends-On: https://review.opendev.org/c/openstack/ansible-collection-kolla/+/942179 Change-Id: I97a97da73a7ccb27789e979656867e4adfe8a633
65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
---
|
|
- name: Create dir for kolla logs
|
|
ansible.builtin.file:
|
|
path: "{{ kolla_logs_dir }}"
|
|
state: directory
|
|
mode: "0755"
|
|
owner: zuul
|
|
group: zuul
|
|
|
|
- name: Dump host info to logs
|
|
ansible.builtin.command: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tools/dump_info.sh"
|
|
args:
|
|
chdir: "{{ kolla_logs_dir }}"
|
|
changed_when: true
|
|
|
|
- name: Create dir for kolla build logs
|
|
ansible.builtin.file:
|
|
path: "{{ kolla_build_logs_dir }}"
|
|
state: directory
|
|
mode: "0755"
|
|
owner: zuul
|
|
group: zuul
|
|
|
|
- name: Install Python3 pip and setuptools
|
|
ansible.builtin.package:
|
|
name:
|
|
- python3-pip
|
|
- python3-setuptools
|
|
become: true
|
|
|
|
# NOTE(hrw): On RedHat systems venv is part of python3-libs
|
|
- name: Install Python3 venv on Debian systems
|
|
ansible.builtin.package:
|
|
name:
|
|
- python3-venv
|
|
become: true
|
|
when: ansible_facts.os_family == "Debian"
|
|
|
|
- name: Install kolla in a venv
|
|
ansible.builtin.pip:
|
|
name:
|
|
- "pip"
|
|
- "."
|
|
state: latest
|
|
virtualenv: "{{ virtualenv_path }}"
|
|
virtualenv_command: "python3.{{ ansible_facts.python.version.minor }} -m venv"
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
|
|
- name: Configure container engine
|
|
ansible.builtin.include_role:
|
|
name: "{{ container_engine }}"
|
|
|
|
- name: Install podman/docker_sdk in a venv
|
|
vars:
|
|
virtualenv: "{{ virtualenv_path }}"
|
|
docker_sdk_virtualenv_owner: "{{ lookup('env', 'USER') }}"
|
|
ansible.builtin.include_role:
|
|
name: "{{ container_engine }}_sdk"
|
|
|
|
- name: Ensure container engine socket is world-writable
|
|
ansible.builtin.file:
|
|
path: "{{ '/run/docker.sock' if container_engine == 'docker' else '/run/podman/podman.sock' }}"
|
|
mode: "0666"
|
|
become: true
|