Test container updates when delorean-current does not exist

delorean-current does not exist is downstream jobs.
This review set_fact to edit the default value
before adding component repos.

Change-Id: I8c163457c24e92a4a98d4796b7dfd8351c0bfe14
This commit is contained in:
Ronelle Landy
2021-06-03 09:02:33 -04:00
parent 10507caa47
commit ef91d725f8

View File

@@ -99,6 +99,18 @@
dest: "{{ working_dir }}/undercloud-parameter-defaults.yaml"
mode: 0600
- name: Set update_containers_repo if delorean-current is not present
stat:
path: "/etc/yum.repos.d/delorean-current.repo"
register: delorean_current_stat
- name: Remove delorean-current from repo updates
set_fact:
update_containers_repo: >-
{% if compressed_gating_repo is defined %}{{ gating_repo_name }}{% endif %}
{%- if compressed_gating_repo is defined and container_prep_additional_repos -%},{%- endif -%}
{%- if container_prep_additional_repos -%}{{ container_prep_additional_repos }}{%- endif -%}
when: not delorean_current_stat.stat.exists
- name: Set repos defined in the job for container update
when: