Skip to content

Commit

Permalink
oraswdb_manage_patches: mount/umount NFS with orasw_meta role
Browse files Browse the repository at this point in the history
  • Loading branch information
Rendanic committed Sep 16, 2022
1 parent e676c04 commit 3d8bcc9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions roles/oraswdb_manage_patches/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit 3d8bcc9

Please sign in to comment.