aboutsummaryrefslogtreecommitdiff
path: root/tests/playbooks/pre.yml
blob: a884f810bc114a1031a596692f62fe6499d86fca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
- hosts: all
  roles:
    - bindep
  tasks:
    - name: Create dir for kolla logs
      file:
        path: "{{ kolla_logs_dir }}"
        state: directory

    - name: Dump host info to logs
      command: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tools/dump_info.sh"
      args:
        chdir: "{{ kolla_logs_dir }}"

    - name: Create dir for kolla build logs
      file:
        path: "{{ kolla_build_logs_dir }}"
        state: directory

    - name: Install Python3 setuptools and family
      package:
        name:
          - python3-pip
          - python3-setuptools
          - python3-virtualenv
          - python3-wheel
      become: true

    - name: Install kolla
      pip:
        name: .
        chdir: "{{ zuul.project.src_dir }}"
        virtualenv: "{{ virtualenv_path }}"
        virtualenv_python: python3