Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to see column names in data #4

Open
thedarkmucko opened this issue Jan 7, 2022 · 0 comments
Open

Unable to see column names in data #4

thedarkmucko opened this issue Jan 7, 2022 · 0 comments

Comments

@thedarkmucko
Copy link

After running a playbook and returning data payload I cannot see as per documentation the column names

`cat tablespace.yaml

  • hosts: localhost
    gather_facts: no
    vars:
    conn_sysdba: &conn_sysdba
    hostname: "{{ hostname }}"
    port: 1521
    service_name: "{{ service }}"
    user: sys
    mode: sysdba
    password: "{{ sys_password }}"
    module_defaults:
    ari_stark.ansible_oracle_modules.oracle_sql: *conn_sysdba

    tasks:

    • name: Query DB
      ari_stark.ansible_oracle_modules.oracle_sql:
      sql: "select file_id, bytes, maxbytes from dba_data_files where tablespace_name='SYSAUX'"
      register: output

    • name: Return values
      debug:
      msg: "{{ output.data }}"`

it returns only the values.

`ansible-playbook tablespace.yaml -e "hostname=myhost service=orcl sys_password='orcl'"
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [localhost] *******************************************************************************************************************************************************

TASK [Query DB] ********************************************************************************************************************************************************
ok: [localhost]

TASK [Return values] ***************************************************************************************************************************************************
ok: [localhost] => {
"msg": [
[
3,
1541406720,
34359721984
]
]
}

PLAY RECAP *************************************************************************************************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
`

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

No branches or pull requests

1 participant