Skip to content

Commit e676c04

Browse files
committed
oraswdb_install: mount/umount NFS with orasw_meta role
1 parent c8d17d4 commit e676c04

File tree

1 file changed

+7
-38
lines changed

1 file changed

+7
-38
lines changed

roles/oraswdb_install/tasks/main.yml

Lines changed: 7 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
- assert
2020

2121
- name: install_home_db | Mount nfs share with installation media
22-
ansible.builtin.mount: src="{{ nfs_server_sw }}:{{ nfs_server_sw_path }}" name={{ oracle_stage_remote }} fstype=nfs state=mounted
23-
when: install_from_nfs
22+
ansible.builtin.include_role:
23+
name: orasw_meta
24+
tasks_from: mount_stage_remote
2425
tags:
2526
- nfsmountdb
2627

@@ -70,39 +71,6 @@
7071
tags:
7172
- oradbsw
7273

73-
#
74-
# - name: install_home_db | Extract files to stage-area
75-
# unarchive:
76-
# src={{ oracle_stage }}/{{ item[0].filename }}
77-
# dest={{ oracle_stage }}/{{ item[0].version }}
78-
# copy=no
79-
# creates="{{ oracle_stage }}/{{ item[0].version }}/{{ item[0].creates }}"
80-
# with_nested:
81-
# - "{{ oracle_sw_image_db }}"
82-
# - "{{ db_homes_installed }}"
83-
# become: true
84-
# become_user: "{{ oracle_user }}"
85-
# run_once: "{{ configure_cluster }}"
86-
# when: item[0].version == db_homes_config[item[1].home]['version'] and item[1].state|lower == 'present' and oracle_sw_copy and oracle_sw_unpack
87-
# tags:
88-
# - oradbswunpack
89-
#
90-
# - name: install_home_db | Extract files to stage-area (from remote location)
91-
# unarchive:
92-
# src={{ oracle_stage_remote }}/{{ item[0].filename }}
93-
# dest={{ oracle_stage }}/{{ item[0].version }}
94-
# copy=no
95-
# creates="{{ oracle_stage }}/{{ item[0].version }}/{{ item[0].creates }}"
96-
# with_nested:
97-
# - "{{ oracle_sw_image_db }}"
98-
# - "{{ db_homes_installed }}"
99-
# become: true
100-
# become_user: "{{ oracle_user }}"
101-
# run_once: "{{ configure_cluster }}"
102-
# when: item[0].version == db_homes_config[item[1].home]['version'] and item[1].state|lower == 'present' and not oracle_sw_copy and oracle_sw_unpack
103-
# tags:
104-
# - oradbswunpack
105-
10674
- ansible.builtin.include_tasks: install-home-db.yml
10775
with_items:
10876
- "{{ db_homes_installed }}"
@@ -112,10 +80,11 @@
11280
tags: oradbinstall,dbchopt
11381

11482
- name: install_home_db | Unmount nfs share with installation media
115-
ansible.builtin.mount: src="{{ nfs_server_sw }}:{{ nfs_server_sw_path }}" name={{ oracle_stage_remote }} fstype=nfs state=absent
116-
when: install_from_nfs
83+
ansible.builtin.include_role:
84+
name: orasw_meta
85+
tasks_from: umount_stage_remote
11786
tags:
118-
- nfsunmountdb
87+
- nfsumountdb
11988

12089
- name: install_home_db | copy start/stop script for autostart
12190
ansible.builtin.copy:

0 commit comments

Comments
 (0)