--- - name: Set custom cifmw PATH reusable fact tags: - always when: - cifmw_path is not defined ansible.builtin.set_fact: cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}" cacheable: true - name: Get customized parameters tags: - always ansible.builtin.set_fact: ci_framework_params: >- {{ hostvars[inventory_hostname] | dict2items | selectattr("key", "match", "^(cifmw|pre|post)_(?!install_yamls|openshift_token|openshift_login|openshift_kubeconfig).*") | list | items2dict }} - name: Install custom CAs as soon as possible tags: - bootstrap - packages ansible.builtin.import_role: name: install_ca - name: Run repo_setup tags: - bootstrap - packages ansible.builtin.import_role: name: repo_setup - name: Run ci_setup role tags: - bootstrap ansible.builtin.import_role: role: ci_setup - name: Prepare install_yamls make targets when: - cifmw_architecture_scenario is undefined tags: - bootstrap ansible.builtin.include_role: name: install_yamls apply: tags: - bootstrap - name: Get latest image for future reference tags: - bootstrap ansible.builtin.import_role: role: discover_latest_image - name: Create artifacts with custom params tags: - always ansible.builtin.copy: mode: "0644" dest: "{{ cifmw_basedir }}/artifacts/parameters/custom-params.yml" content: "{{ ci_framework_params | to_nice_yaml }}"