|
21 | 21 | ansible.builtin.command:
|
22 | 22 | chdir: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/ci-framework"
|
23 | 23 | cmd: >-
|
24 |
| - ansible-playbook ci/playbooks/tcib/tcib.yml |
| 24 | + ansible-playbook ci/playbooks/tcib/tcib.yml -c local |
25 | 25 | -i "{{ ansible_user_dir }}/ci-framework-data/artifacts/zuul_inventory.yml"
|
26 | 26 | -e @scenarios/centos-9/base.yml
|
27 | 27 | -e @scenarios/centos-9/tcib.yml
|
|
34 | 34 | {%- endif %}
|
35 | 35 | -e "@{{ ansible_user_dir }}/ci-framework-data/artifacts/parameters/zuul-params.yml"
|
36 | 36 |
|
37 |
| - - name: Slurp dlrn md5 hash |
38 |
| - become: true |
39 |
| - vars: |
40 |
| - _repo_path: >- |
41 |
| - {%- if cifmw_repo_setup_output is defined %} |
42 |
| - {{ cifmw_repo_setup_output }} |
43 |
| - {%- else %} |
44 |
| - {{ ansible_user_dir }}/ci-framework-data/artifacts/repositories |
45 |
| - {%- endif %} |
46 |
| - block: |
47 |
| - - name: Check DLRN md5 exists or not |
48 |
| - ansible.builtin.stat: |
49 |
| - path: "{{ _repo_path }}/delorean.repo.md5" |
50 |
| - register: _check_dlrn_md5 |
51 |
| - |
52 |
| - - name: Slurp dlrn md5 hash |
53 |
| - ansible.builtin.slurp: |
54 |
| - path: "{{ _repo_path }}/delorean.repo.md5" |
55 |
| - register: _md5_data |
56 |
| - when: _check_dlrn_md5.stat.exists |
| 37 | + - name: Include inner ansible vars file |
| 38 | + ansible.builtin.slurp: |
| 39 | + src: "{{ cifmw_artifacts_basedir }}/artifacts/ansible-vars.yml" |
| 40 | + register: inner_ansible |
57 | 41 |
|
58 |
| - - name: Store md5 content |
59 |
| - ansible.builtin.set_fact: |
60 |
| - _dlrn_md5: "{{ _md5_data['content'] | b64decode }}" |
61 |
| - when: _check_dlrn_md5.stat.exists |
| 42 | + - name: Get inner ansible vars |
| 43 | + ansible.builtin.set_fact: |
| 44 | + inner_ansible_vars: "{{ inner_ansible.content | b64decode | from_yaml }}" |
62 | 45 |
|
63 | 46 | - name: Return Zuul Data
|
| 47 | + vars: |
| 48 | + _inner_ansible_vars: "{{ inner_ansible.content | b64decode | from_yaml }}" |
| 49 | + _dlrn_md5: "{{ _inner_ansible_vars.cifmw_repo_setup_full_hash }}" |
64 | 50 | ansible.builtin.debug:
|
65 | 51 | msg: >-
|
66 | 52 | Running Content provider registry on
|
67 | 53 | {{ node_ip | default('nowhere') }} with dlrn md5 hash
|
68 | 54 | {{ _dlrn_md5 | default('') }}
|
69 | 55 |
|
70 | 56 | - name: Set up content registry IP address
|
| 57 | + vars: |
| 58 | + _inner_ansible_vars: "{{ inner_ansible.content | b64decode | from_yaml }}" |
| 59 | + _dlrn_md5: "{{ _inner_ansible_vars.cifmw_repo_setup_full_hash }}" |
71 | 60 | zuul_return:
|
72 | 61 | data:
|
73 | 62 | zuul:
|
|
0 commit comments