ari_stark.ansible_oracle_modules.oracle_opatch (1.2.1) — module

Manage patches in an Oracle environment

| "added in version" 0.8.0 of ari_stark.ansible_oracle_modules"

Authors: Mikael Sandström, oravirt@gmail.com, @oravirt

Install collection

Install with ansible-galaxy collection install ari_stark.ansible_oracle_modules:==1.2.1


Add to requirements.yml

  collections:
    - name: ari_stark.ansible_oracle_modules
      version: 1.2.1

Description

Manage patches in an Oracle environment - Manages patches (applies/rolls back) - Only manages the opatch part of patching (opatch/opatch auto/opatchauto) - If opatchauto is true, the task has to be run as root


Requirements

Inputs

    
port:
    default: 1521
    description:
    - The listener port to connect to the database if using dbms_service
    required: false

state:
    choices:
    - present
    - absent
    - opatchversion
    default: present
    description:
    - Should a patch be applied or removed
    - present = applied, absent = removed, opatchversion = returns the version of opatch

rolling:
    default: true
    description:
    - Should a patch installed in rolling upgrade mode?
    required: false

hostname:
    aliases:
    - host
    default: localhost
    description:
    - The host of the database if using dbms_service
    required: false

patch_id:
    aliases:
    - id
    default: None
    description:
    - The patch id e.g 27468957
    required: false

opatchauto:
    aliases:
    - autopatch
    default: false
    description:
    - Should the patch be applied using opatchato
    - If set to true, the task has to run as 'root'
    required: false

patch_base:
    aliases:
    - path
    - source
    - patch_source
    - phBaseDir
    default: None
    description:
    - Path to where the patch is located e.g /nfs/patches/12.1.0.2/27468957
    required: false

oracle_home:
    aliases:
    - oh
    description:
    - The home which will be patched
    required: true

patch_version:
    aliases:
    - version_added
    default: None
    description:
    - The patch version e.g 12.2.0.1.180417
    - This key is mandatory if you're applying a 'opatchauto' type of patch
    required: false

conflict_check:
    default: true
    description:
    - Should a conflict check be run before applying a patch.
    - If the check errors the module exits with a failure
    required: false

stop_processes:
    default: false
    description:
    - Stop Instances and Listener before applying a patch in ORACLE_HOME
    required: false

ocm_response_file:
    default: false
    description:
    - The OCM responsefile needed for OPatch versions < '12.2.0.1.5' (basically for DB/GI
      versions < 12.1)
    required: false

opatch_minversion:
    aliases:
    - opmv
    default: None
    description:
    - The minimum version of opatch needed
    - If this key is set, a comparison is made between existing version and opatch_minversion
      If existing < opatch_minversion an error is raised
    required: false