![Sorin Sbarnea](/assets/img/avatar_default.png)
- run `pre-commit autoupdate` and fixed new issues - adopted newer pre-commit config for ansible-lint 4.2.0+ - fixed some reported broken rules - temporary disabled few rules, just to contain the size of of review, planning to drop/fix them in follow-ups. Change-Id: I807ba4e919527be56c85ec72d0f4c7148f04e994
32 lines
902 B
YAML
32 lines
902 B
YAML
---
|
|
- name: gather facts used by role
|
|
setup:
|
|
gather_subset: "!min,pkg_mgr"
|
|
when: >
|
|
ansible_pkg_mgr is not defined
|
|
|
|
- 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
|
|
command: 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
|