opitzconsulting.ansible_oracle.oracle_jobschedule (4.7.0) — module

Manage DBMS_SCHEDULER job schedules in Oracle database

| "added in version" 2.2.1 of opitzconsulting.ansible_oracle"

Authors: Ilmar Kerm, ilmar.kerm@gmail.com, @ilmarkerm

Install collection

Install with ansible-galaxy collection install opitzconsulting.ansible_oracle:==4.7.0


Add to requirements.yml

  collections:
    - name: opitzconsulting.ansible_oracle
      version: 4.7.0

Description

Manage DBMS_SCHEDULER job schedules in Oracle database

Can be run locally on the controlmachine or on a remote host


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
- hosts: localhost
  vars:
    oraclehost: 192.168.56.101
    oracleport: 1521
    oracleservice: orcl
    oracleuser: system
    oraclepassword: oracle
    oracle_env:
      ORACLE_HOME: /usr/lib/oracle/12.1/client64
      LD_LIBRARY_PATH: /usr/lib/oracle/12.1/client64/lib
  tasks:
    - name: job schedule
      oracle_jobschedule:
        hostname: "{{ oraclehost }}"
        port: "{{ oracleport }}"
        service_name: "{{ oracleservice }}"
        user: "{{ oracleuser }}"
        password: "{{ oraclepassword }}"
        state: present
        name: hr.hourly_schedule
        interval: FREQ=HOURLY; INTERVAL=1
        comments: Just for testing
      environment: "{{ oracle_env }}"

Inputs

    
mode:
    choices:
    - normal
    - sysdba
    default: normal
    description: 'The mode with which to connect to the database

      '
    required: true

name:
    description: Job schedule name
    required: true

port:
    default: 1521
    description: The listener port number on the host
    required: false

user:
    description: 'The Oracle user name to connect to the database, must have DBA privilege

      '
    required: false

state:
    choices:
    - present
    - absent
    description: 'If present, job schedule is created, if absent then schedule is dropped

      '
    required: true

comments:
    description: Comment about the class
    required: false

hostname:
    default: localhost
    description: The Oracle database host
    required: false

password:
    description: 'The Oracle user password for ''user''

      '
    required: false

service_name:
    description: The database service name to connect to
    required: true

repeat_interval:
    aliases:
    - interval
    description: Schedule repeat interval using DBMS_SCHEDULER calendaring syntax
    required: true

convert_to_upper:
    default: true
    description: Schedule name automatically converted to upper case
    required: false
    type: bool