--- - name: "Run ci/playbooks/edpm/update.yml" hosts: "{{ cifmw_zuul_target_host | default('all') }}" gather_facts: true tasks: - name: Filter out host if needed when: - cifmw_zuul_target_host is defined - cifmw_zuul_target_host != 'all' - inventory_hostname != cifmw_zuul_target_host ansible.builtin.meta: end_host - name: Check for edpm-ansible.yml file ansible.builtin.stat: path: "{{ ansible_user_dir }}/ci-framework-data/artifacts/edpm-ansible.yml" register: edpm_file - name: Run Podified EDPM update ansible.builtin.command: chdir: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/ci-framework" cmd: >- ansible-playbook update-edpm.yml -i "{{ ansible_user_dir }}/ci-framework-data/artifacts/zuul_inventory.yml" -e @group_vars/all.yml -e @scenarios/centos-9/base.yml -e @scenarios/centos-9/edpm_ci.yml {%- if edpm_file.stat.exists %} -e @{{ ansible_user_dir }}/ci-framework-data/artifacts/edpm-ansible.yml {%- endif %} {%- if cifmw_extras is defined %} {%- for extra_var in cifmw_extras %} -e "{{ extra_var }}" {%- endfor %} {%- endif %} -e update_playbook_run=true -e "@{{ ansible_user_dir }}/ci-framework-data/artifacts/parameters/zuul-params.yml" {%- if cifmw_update_extras is defined %} {%- for key, value in cifmw_update_extras.items() %} -e "{{key}}={{value}}" {%- endfor %} {%- endif %}