-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdiscovery_setup_json.yml
47 lines (38 loc) · 1.38 KB
/
discovery_setup_json.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
#Copyright (c) 2020, Oracle and/or its affiliates.
#The Universal Permissive License (UPL), Version 1.0
#
- name: Display oracle_source_dbname and oracle_target_dbname
hosts: localhost
tasks:
# Display oracle_source_dbname
- name: Display oracle_source_dbname
debug:
msg: "oracle_source_dbname = '{{ oracle_source_dbname }}'"
when: oracle_source_dbname is defined
# Display oracle_target_dbname
- name: Display oracle_target_dbname
debug:
msg: "oracle_target_dbname = '{{ oracle_target_dbname }}'"
when: oracle_target_dbname is defined
# Discover source OCI-C DBCS
- name: Discover source OCI-C DBCS
hosts: source[0]
roles:
- source_discovery_role
# Discover target OCI DBSystem
- name: Discover target OCI DBSystem
hosts: target[0]
roles:
- target_discovery_role
- name: Save setup.json file from template
hosts: localhost
tasks:
# Save setup.json_discovery_XXXXXXXXXXXXXXX file
- name: Save setup.json_discovery_XXXXXXXXXXXXXXX file
copy:
content: "{{ lookup('template', '../templates/setup.json_template.j2') }}"
dest: "./setup.json_discovery_{{ansible_date_time.iso8601_basic_short}}"
# Content of setup.json_discovery_XXXXXXXXXXXXXXX file
- name: Content of setup.json_discovery_XXXXXXXXXXXXXXX file
debug:
msg: "{{ lookup('template', '../templates/setup.json_template.j2') }}"