.yml is failing with syntax error -- need advise

Hi Experts,

My export.yml is failing,please correct me

[oracle@node02 ~]$ cat export.yml

I believe the problem here is indentation.

  • hosts: node02
    vars:
    ORACLE_BASE: /u01/oracle/product
    ORACLE_HOME: /u01/oracle/product/11.2.0
    remote_user: oracle
    sudo_user: root
    sudo: false
    gather_facts: true
    tasks:

-AliJ

Try the attached Python script.

But probably you just have the wrong number of spaces for indentation.

Try:

(attachments)

yaml-validate.py (2.28 KB)

Thank You Uwe Sauter.

Yes, it was due to spaces. Thanks again for quick assistance.

Regards,
Abdul