ari_stark.ansible_oracle_modules.oracle_asmdg (1.2.1) — module

Manage diskgroups in an Oracle database

| "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 diskgroups in an Oracle database


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a diskgroup
  oracle_asmdg:
    name: MYDG1
    disks:
       - ORCL:MYDG1
       - ORCL:MYDG2
    attribute_name: compatible.asm
    attribute_value: 12.1.0.2
    redundancy: external
    state: present
    un: sys
    pw: oracle123
    sn: '+ASM'
    host: localhost
    oh: /u01/app/oracle/12.1.2.0/grid
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create another diskgroup
  oracle_asmdg:
    name: DATA
    disks:
       - /dev/oracle/data1
       - /dev/oracle/data2
    attributes:
      - {name: compatible.asm, value: 12.2.0.1.0 }
      - {name: compatible.rdbms, value: 12.2.0.1.0 }
    redundancy: external
    state: present
    un: sys
    pw: oracle123
    sn: '+ASM'
    host: localhost
    oh: /u01/app/oracle/12.2.0.1/grid

Inputs

    
name:
    aliases:
    - diskgroup
    - dg
    default: None
    description:
    - The name of the diskgroup
    required: true

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

disks:
    default: None
    description:
    - A list of disks that should be part of the diskgroup.
    - Only the listed disks will be part of the DG, meaning if the disk is removed from
      the list it will also be removed from the DG

state:
    choices:
    - present
    - absent
    - status
    default: present
    description:
    - The intended state of the diskgroup. 'status' will just show the status of the diskgroup

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

password:
    aliases:
    - pw
    default: None
    description:
    - The password for the ASM user
    required: false

username:
    aliases:
    - un
    default: sys
    description:
    - The ASM username
    required: false

redundancy:
    choices:
    - external
    - normal
    - high
    default: external
    description:
    - The redundancy configuration for the diskgroup, It does not yet support putting
      disks in specific failure groups

oracle_home:
    aliases:
    - oh
    default: None
    description:
    - The GI ORACLE_HOME
    required: false

service_name:
    aliases:
    - sn
    default: +ASM
    description:
    - The diskgroup_name to connect to the database if using dbms_diskgroup.
    required: false

attribute_name:
    aliases:
    - an
    default: None
    description:
    - The attribute name (e.g compatible.rdbms)

attribute_value:
    aliases:
    - av
    default: None
    description:
    - The attribute value (e.g 12.1.0.2)