Skip to content

Commit c2ffc5b

Browse files
committed
oradb_facts: Bugfix for missing default variable definitions
1 parent 8acc5ac commit c2ffc5b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

changelogs/fragments/db_facts.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
bugfixes:
3+
- "oradb_facts: Bugfix for missing default variable definitions (oravirt#366)"

roles/oradb_facts/tasks/db_facts.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
mode: sysdba
1010
environment: "{{ __oracle_env }}"
1111
register: dbfactsreg
12+
vars:
13+
db_user: "{{ __db_user }}"
1214

1315
# 2nd execution of oracle_factswill overwrite data of last execution.
1416
# => Store facts from oracle_facts in structure

roles/oradb_facts/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
db_name: {{ odb[0]['oracle_db_name'] | default('') }}
2323
db_unique_name: {{ odb[0]['oracle_db_unique_name'] | default('') }}
2424
port: {{ listener_port }}
25-
service: {{ db_service_name }}
25+
service: {{ __db_service_name }}
2626
state: {{ odb[0]['state'] | default('present') }}
2727
when:
2828
- odb[0]['state'] | default('present') == 'present'

0 commit comments

Comments
 (0)