Skip to content

Conversation

ibre5041
Copy link

@ibre5041 ibre5041 commented Apr 5, 2023

This modules parses /etc/oratab, list or running processes and CRS config and produces facts lik this:

ok: [brezinai002] => {
    "sid_list": {
        "changed": false,
        "failed": false,
        "oracle_list": {
            "TEST19C": {
                "ORACLE_BASE": "/oracle/u01/base",
                "ORACLE_HOME": "/oracle/u01/product/19.17.0.0",
                "ORACLE_SID": "TEST19C",
                "owner": "oracle",
                "running": true,
                "status": [
                    "OPEN",
                    "READ WRITE"
                ]
            }
        },
        "warnings": [
            "ORACLE_SID: +ASM is not open"
        ]
    }
}

More complete example is here:
https://github.com/ibre5041/ansible_oracle_modules_example/blob/main/oracle_oratab.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant