File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
roles/oradb-manage-db/tasks Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 22 debug : msg="DB-name is {{dbh.oracle_db_name}}, state is {{ dbh.state}}"
33 run_once : " {{ configure_cluster }}"
44
5- - name : manage-db | check if GI is present
6- stat : path=/etc/oracle/olr.loc_xxxx
7- register : olrloc
8- #
5+ # - name: manage-db | check if GI is present
6+ # stat: path=/etc/oracle/olr.loc
7+ # register: olrloc
8+ #
99# - name: manage-db | check if database exists (GI)
1010# shell: "{{ oracle_home_db }}/bin/srvctl config database | grep -w {{ dbh.oracle_db_name}}"
1111# environment: "{{ oracle_env_dbca }}"
1616# when: olrloc.stat.exists
1717# tags: create_db,dbcatemplate,debug
1818
19- - name : manage-db | check if database exists (NO GI)
19+ - name : manage-db | check if database exists
2020 shell : " cat /etc/oratab | grep -w {{ dbh.oracle_db_name }}:{{ oracle_home_db }} |grep -v \" ^#\" |cut -f1 -d: -s"
2121 environment : " {{ oracle_env_dbca }}"
2222 run_once : " {{ configure_cluster }}"
2323 register : existing_dbs
2424 changed_when : False
2525 failed_when : False
26- when : not olrloc.stat.exists
26+ # when: not olrloc.stat.exists
2727 tags : create_db,dbcatemplate,debug
2828
29- # - debug: var=existing_dbs.stdout_lines
30-
3129- name : manage-db | add dotprofile
3230 template :
3331 src : dotprofile-db.j2
You can’t perform that action at this time.
0 commit comments