diff --git a/roles/reproducer/README.md b/roles/reproducer/README.md index 772e78b2a0..084b4999dc 100644 --- a/roles/reproducer/README.md +++ b/roles/reproducer/README.md @@ -24,6 +24,7 @@ None * `cifmw_reproducer_skip_fetch_repositories`: (Bool) Skip fetching repositories from zuul var and simply copy the code from the ansible controller. Defaults to `false`. * `cifmw_reproducer_supported_hypervisor_os`: (List) List of supported hypervisor operating systems and their minimum version. * `cifmw_reproducer_minimum_hardware_requirements`: (Dict) Define minimum hardware requirements for specific scenarios. Example below +* `cifmw_reproducer_computes_rhos_release_args`: (String) Arguments to use when installing rhos-release repos on compute nodes. Not defined by default, and `cifmw_repo_setup_rhos_release_args` is used instead. ### Advanced parameters Those parameters shouldn't be used, unless the user is able to understand potential issues in their environment. diff --git a/roles/reproducer/tasks/configure_computes.yml b/roles/reproducer/tasks/configure_computes.yml index 95c81347d2..091b5e127d 100644 --- a/roles/reproducer/tasks/configure_computes.yml +++ b/roles/reproducer/tasks/configure_computes.yml @@ -47,6 +47,8 @@ - cifmw_repo_setup_rhos_release_rpm is defined block: - name: Get rhos-release and setup repos + vars: + _rhos_release_args_override: "{{ cifmw_reproducer_computes_rhos_release_args }}" ansible.builtin.include_tasks: rhos_release.yml - name: Create repositories on computes diff --git a/roles/reproducer/tasks/rhos_release.yml b/roles/reproducer/tasks/rhos_release.yml index 752d1c8caf..144094c8a2 100644 --- a/roles/reproducer/tasks/rhos_release.yml +++ b/roles/reproducer/tasks/rhos_release.yml @@ -7,7 +7,7 @@ - name: Install repos ansible.builtin.command: - cmd: "rhos-release {{ cifmw_repo_setup_rhos_release_args | default('rhel') }}" + cmd: "rhos-release {{ _rhos_release_args_override | default(cifmw_repo_setup_rhos_release_args) | default('rhel') }}" - name: Run custom commands after rhos-release setup ansible.builtin.command: