aboutsummaryrefslogtreecommitdiff
path: root/roles/kolla-build/tasks/main.yml
blob: 329507b311a2541ff68bbdf66b3591cad06becfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: Template template_overrides.j2
  ansible.builtin.template:
    src: "{{ kolla_build_template_overrides_path }}"
    dest: /etc/kolla/template_overrides.j2
  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

- name: Run kolla-build
  ansible.builtin.command:
    cmd: "{{ kolla_build_venv_path }}/bin/kolla-build"