tripleo-quickstart-extras/roles/install-built-repo/tasks/main.yml
Sagi Shnaidman d7757ec171 Ansible role for built packages install
Take the repository comressed file, which was built by
build-test-packages role and install packages from it on live
host or inject them into the image with modify-image role.

Change-Id: I0305cfb917500a5890d74cadf9299d6538262282
2017-02-22 10:18:03 +02:00

25 lines
773 B
YAML

- name: Create repo setup script
template:
src: "{{ ib_repo_install_script }}"
dest: "{{ ib_repo_workdir }}/install-built-repo.sh"
mode: 0755
- when: ib_repo_host is defined
block:
- name: Fetch repo to localhost
fetch: "src={{ ib_repo_file_path }} dest={{ local_working_dir }}/gating_repo.tar.gz flat=yes"
delegate_to: "{{ ib_repo_host }}"
- name: Upload repo to host for install
copy: "src={{ local_working_dir }}/gating_repo.tar.gz dest=/tmp/gating_repo.tar.gz"
- name: Copy compressed repo to /tmp
shell: cp -f {{ ib_repo_file_path }} /tmp/gating_repo.tar.gz
when: ib_repo_host is not defined
- include: install_built_repo.yml
when: ib_repo_run_live|bool
- include: inject_repo.yml
when: ib_repo_image_inject|bool