Skip to content

Commit

Permalink
oraswdb_install: 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 c8d17d4 commit e676c04
Showing 1 changed file with 7 additions and 38 deletions.
45 changes: 7 additions & 38 deletions roles/oraswdb_install/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
- assert

- 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
ansible.builtin.include_role:
name: orasw_meta
tasks_from: mount_stage_remote
tags:
- nfsmountdb

Expand Down Expand Up @@ -70,39 +71,6 @@
tags:
- oradbsw

#
# - name: install_home_db | Extract files to stage-area
# unarchive:
# src={{ oracle_stage }}/{{ item[0].filename }}
# dest={{ oracle_stage }}/{{ item[0].version }}
# copy=no
# creates="{{ oracle_stage }}/{{ item[0].version }}/{{ item[0].creates }}"
# with_nested:
# - "{{ oracle_sw_image_db }}"
# - "{{ db_homes_installed }}"
# become: true
# become_user: "{{ oracle_user }}"
# run_once: "{{ configure_cluster }}"
# 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
# tags:
# - oradbswunpack
#
# - name: install_home_db | Extract files to stage-area (from remote location)
# unarchive:
# src={{ oracle_stage_remote }}/{{ item[0].filename }}
# dest={{ oracle_stage }}/{{ item[0].version }}
# copy=no
# creates="{{ oracle_stage }}/{{ item[0].version }}/{{ item[0].creates }}"
# with_nested:
# - "{{ oracle_sw_image_db }}"
# - "{{ db_homes_installed }}"
# become: true
# become_user: "{{ oracle_user }}"
# run_once: "{{ configure_cluster }}"
# 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
# tags:
# - oradbswunpack

- ansible.builtin.include_tasks: install-home-db.yml
with_items:
- "{{ db_homes_installed }}"
Expand All @@ -112,10 +80,11 @@
tags: oradbinstall,dbchopt

- name: install_home_db | Unmount nfs share with installation media
ansible.builtin.mount: src="{{ nfs_server_sw }}:{{ nfs_server_sw_path }}" name={{ oracle_stage_remote }} fstype=nfs state=absent
when: install_from_nfs
ansible.builtin.include_role:
name: orasw_meta
tasks_from: umount_stage_remote
tags:
- nfsunmountdb
- nfsumountdb

- name: install_home_db | copy start/stop script for autostart
ansible.builtin.copy:
Expand Down

0 comments on commit e676c04

Please sign in to comment.