-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup_db.yml
31 lines (27 loc) · 1.01 KB
/
startup_db.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
---
# ------------------------------------------------------------------------------
# Start Oracle Listener and Database Instance
# ------------------------------------------------------------------------------
- name: "Create DB Management Scripts"
template:
dest: "{{ item }}"
src: "{{ item | basename }}.j2"
mode: "u+rwx"
with_items:
- "{{ start_db_inst }}"
become: yes
become_user: oracle
when: inventory_hostname in groups['database']
- name: "Start Oracle Database Listener and Instance"
command:
argv:
- "{{ start_db_inst }}"
become: yes
become_user: oracle
when: inventory_hostname in groups['database']
register: start_db_inst
- name: "Status of Oracle Database Instance"
debug:
var: start_db_inst.stdout_lines
when: start_db_inst.stdout_lines is defined
...