forked from openstack-k8s-operators/ci-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-edpm.yml
47 lines (42 loc) · 1.57 KB
/
update-edpm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
# Entry point for the CI Framework tool.
# Running by this playbook, and providing the needed information, you will
# be able to update various deployed scenarios based on EDPM.
# Note that this playbook *must* be called from within
# openstack-k8s-operators/install_yaml repository in order to leverage its
# own methods.
- name: Remove status flag
hosts: "{{ cifmw_target_host | default('localhost') }}"
tasks:
- name: Delete success flag if exists
ansible.builtin.file:
path: "{{ ansible_user_dir }}/cifmw-success"
state: absent
- name: Import update related playbook
ansible.builtin.import_playbook: playbooks/update.yml
when: cifmw_run_update | default('false') | bool
tags:
- update
- name: Import run test playbook
ansible.builtin.import_playbook: playbooks/08-run-tests.yml
vars:
pre_tests: "{{ (lookup('vars', 'pre_tempest', default=[])) }}"
post_tests: "{{ (lookup('vars', 'post_tempest', default=[])) }}"
cifmw_test_operator_artifacts_basedir: "{{ cifmw_basedir|default(ansible_user_dir ~ '/ci-framework-data') }}/tests/test_operator_update"
when:
- cifmw_run_tests | default('false') | bool
tags:
- run-tests
- name: Inject status flag
hosts: "{{ cifmw_target_host | default('localhost') }}"
tasks:
- name: Inject success flag
ansible.builtin.file:
path: "{{ ansible_user_dir }}/cifmw-success"
state: touch
mode: "0644"
- name: Run log related tasks
ansible.builtin.import_playbook: playbooks/99-logs.yml
when: not zuul_log_collection | default('false') | bool
tags:
- logs