diff --git a/roles/repo_setup/tasks/artifacts.yml b/roles/repo_setup/tasks/artifacts.yml index e10e63c334..004865efbc 100644 --- a/roles/repo_setup/tasks/artifacts.yml +++ b/roles/repo_setup/tasks/artifacts.yml @@ -24,14 +24,14 @@ _repo_setup_json: "{{ _get_hash.stdout | from_json }}" block: - name: Dump full hash in delorean.repo.md5 file - when: cifmw_repo_setup_component_promotion_tag is not defined + when: cifmw_repo_setup_component_name | length == 0 ansible.builtin.copy: content: | {{ _repo_setup_json['full_hash'] }} dest: "{{ cifmw_repo_setup_basedir }}/artifacts/repositories/delorean.repo.md5" - name: Dump current-podified hash when using with component repo - when: cifmw_repo_setup_component_promotion_tag is defined + when: cifmw_repo_setup_component_name | length > 0 ansible.builtin.get_url: url: "{{ cifmw_repo_setup_dlrn_uri }}/{{ cifmw_repo_setup_os_release }}{{ cifmw_repo_setup_dist_major_version }}-{{ cifmw_repo_setup_branch }}/current-podified/delorean.repo.md5" dest: "{{ cifmw_repo_setup_basedir }}/artifacts/repositories/delorean.repo.md5"