This repository was archived by the owner on Mar 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdeploy-data.yml
More file actions
55 lines (49 loc) · 1.85 KB
/
deploy-data.yml
File metadata and controls
55 lines (49 loc) · 1.85 KB
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
48
49
50
51
52
53
54
55
---
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the ODPi Egeria project.
- name: load Minimal sample data
hosts: all
any_errors_fatal: true
vars_files:
- defaults/main.yml
- vars/data.yml
tasks:
- name: load sample data files
include_tasks: data-files/load.yml
when: ('egeria_samples_db_host' in group_names) or ('ibm_information_server_engine' in group_names)
- name: create sample databases
include_tasks: "database/{{ egeria_samples_minimal_db_type }}/create-databases.yml"
when: ('egeria_samples_db_host' in group_names)
- name: load sample data to databases
include_tasks: "database/{{ egeria_samples_minimal_db_type }}/load.yml"
when: ('egeria_samples_db_host' in group_names)
- name: setup Information Server variables
import_role:
name: ibm.infosvr
tasks_from: setup_vars.yml
when: ('ibm_information_server_engine' in group_names)
- name: post-check remote database catalog status
shell: "source ~/.bashrc && db2 list database directory"
args:
executable: /bin/bash
become_user: "{{ ibm_infosvr_users.db2inst1 }}"
become: yes
ignore_errors: yes
register: __minimal_db2catalog_completion
changed_when: False
when: >
('ibm_information_server_engine' in group_names)
and (egeria_samples_minimal_db_type == 'ibm-db2')
- name: catalog remote data nodes
shell: >
source ~/.bashrc &&
db2 catalog database MINIMAL at node REPO &&
db2 terminate
args:
executable: /bin/bash
when: >
('ibm_information_server_engine' in group_names)
and (egeria_samples_minimal_db_type == 'ibm-db2')
and __minimal_db2catalog_completion.stdout.find('MINIMAL') == -1
become_user: "{{ ibm_infosvr_users.db2inst1 }}"
become: yes