diff --git a/roles/oraswdb_manage_patches/tasks/main.yml b/roles/oraswdb_manage_patches/tasks/main.yml index 71a88f4b8..693ca72fa 100644 --- a/roles/oraswdb_manage_patches/tasks/main.yml +++ b/roles/oraswdb_manage_patches/tasks/main.yml @@ -3,9 +3,10 @@ ansible.builtin.stat: path=/etc/oracle/olr.loc register: olrloc -- name: install_home_db | Mount nfs share with installation media - ansible.builtin.mount: src="{{ nfs_server_sw }}:{{ nfs_server_sw_path }}" name={{ oracle_stage_remote }} fstype=nfs state=mounted - when: install_from_nfs +- name: db_opatch | Mount nfs share with installation media + ansible.builtin.include_role: + name: orasw_meta + tasks_from: mount_stage_remote tags: - nfsmountdb @@ -29,3 +30,10 @@ loop_var: dbh when: db_homes_installed is defined and dbh.state == 'present' and dbh.apply_patches |default (False) and apply_patches_db tags: autopatch + +- name: db_opatch | Unmount nfs share with installation media + ansible.builtin.include_role: + name: orasw_meta + tasks_from: umount_stage_remote + tags: + - nfsumountdb