--- - name: "Run ci/playbooks/edpm/run.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 ### # Make cifmw general plugins available when nested Ansible executed - name: Make a symlink to local .ansible collection dir ansible.builtin.include_role: name: cifmw_helpers tasks_from: symlink_cifmw_collection.yml - name: Run Podified EDPM deployment ansible.builtin.command: chdir: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/ci-framework" cmd: >- ansible-playbook deploy-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 "@{{ ansible_user_dir }}/ci-framework-data/artifacts/parameters/zuul-params.yml" - name: Run Podified EDPM post deployment ansible.builtin.command: chdir: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/ci-framework" cmd: >- ansible-playbook post-deployment.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 "@{{ ansible_user_dir }}/ci-framework-data/artifacts/parameters/zuul-params.yml"