ibre5041.ansible_oracle_modules.oracle_crs_db (3.2.0) — module

Manage CRS/HAS resources type database

| "added in version" 3.1.7.0 of ibre5041.ansible_oracle_modules"

Authors: Ivan Brezina

Install collection

Install with ansible-galaxy collection install ibre5041.ansible_oracle_modules:==3.2.0


Add to requirements.yml

  collections:
    - name: ibre5041.ansible_oracle_modules
      version: 3.2.0

Description

Manage CRS/HAS Database resources

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Register Database
  oracle_crs_db:
    name: TMP12102 
    oraclehome: /opt/oracle/product/19.21.0.0/db1
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Restart Database
  oracle_crs_db:
    name: TMP12102
    state: restarted

Inputs

    
name:
    description:
    - -db <db_unique_name> Unique name for the database
    required: true

role:
    choices:
    - PRIMARY
    - PHYSICAL_STANDBY
    - LOGICAL_STANDBY
    - SNAPSHOT_STANDBY
    description:
    - <role> Role of the database"
    required: false

force:
    default: false
    description:
    - Force stop, will stop database and any associated services and any dependent resources
    - Force remove (ignore dependencies)
    type: bool

state:
    choices:
    - present
    - absent
    - started
    - stopped
    - restarted
    description:
    - Resource state

dbname:
    description:
    - <db_name> Database name (DB_NAME), if different from the unique name given by the
      -db option
    required: false

domain:
    description:
    - <domain_name> Domain for database. Must be set if database has DB_DOMAIN set
    required: false

policy:
    choices:
    - AUTOMATIC
    - MANUAL
    - NORESTART
    - USERONLY
    description:
    - <dbpolicy> Management policy for the database (AUTOMATIC, MANUAL, NORESTART or USERONLY)
    required: false

pwfile:
    description:
    - <password_file_path> Password file path
    required: false

spfile:
    description:
    - <spfile> Server parameter file path

enabled:
    default: true
    description:
    - Enables the database
    type: bool

instance:
    description:
    - <inst_name> Instance name
    required: false

diskgroup:
    description:
    - <diskgroup_list> Comma separated list of disk group names
    required: false

oraclehome:
    description:
    - oraclehome <path> Oracle home path
    required: false

stopoption:
    choices:
    - NORMAL
    - TRANSACTIONAL
    - IMMEDIATE
    - ABORT
    description:
    - <stop_options> Stop options for the database
    required: false

startoptions:
    choices:
    - OPEN
    - MOUNT
    - READ ONLY
    description:
    - <start_options>   Startup options for the database
    required: false