oravirt/ansible-oracle-modules

Ansible error on test

krsih80 opened this issue · 1 comments

Hi ,
I am beginner in Ansible and Python , Tested the test-modules.yml and sample job.yml .
Getting below error . tried option on changing the intend , but it's not running any version compatibility issue or can you please share how to test it .

ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/oracle/admin/scripts/ansible-oracle-modules-master/job.yml': line 9, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

tasks:
- name:
^ here

job.yml

  • hosts: localhost
    vars:
    oraclehost: S447test

    oracleport: 1522
    oracleservice: orcl
    oracleuser: system
    oraclepassword: Winter_2020
    oracle_env:
    ORACLE_HOME: /oracle/12.1.0.2
    LD_LIBRARY_PATH: /oracle/12.1.0.2/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 }}"
      ~

Solved by placing the file in correct module directory .