blob: 927bb130999d62eb2274c91f89bbeb4d006d9ed2 (
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
|
---
- name: Template repos.yaml
ansible.builtin.template:
src: "{{ kolla_build_repos_yaml_path }}"
dest: /etc/kolla/repos.yaml
mode: "0660"
owner: zuul
group: zuul
when: kolla_build_repos_yaml_path | length > 0
- name: Template template_overrides.j2
ansible.builtin.template:
src: "{{ kolla_build_template_overrides_path }}"
dest: /etc/kolla/template_overrides.j2
mode: "0660"
owner: zuul
group: zuul
when: kolla_build_template_overrides_path | length > 0
- name: Run kolla-build to template out dockerfiles
ansible.builtin.command:
cmd: >-
{{ kolla_build_venv_path }}/bin/kolla-build --template-only
--work-dir {{ kolla_build_logs_dir }}/work_dir
changed_when: true
- name: Run kolla-build
vars:
platform: "{{ '--platform linux/arm64' if base_arch == 'aarch64' and base_arch != ansible_facts.architecture }}"
ansible.builtin.command:
cmd: "{{ kolla_build_venv_path }}/bin/kolla-build {{ platform }}"
changed_when: true
|