Hi Experts,

My export.yml is failing,please correct me


[oracle@node02 ~]$ cat export.yml
---
  - 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:
  - name: export ORACLE_HOME
  action: shell export ORACLE_HOME={{ ORACLE_HOME }};

********************************************************************************
[oracle@node02 ~]$ ansible-playbook -i hosts -k export.yml
SSH password:
ERROR! Syntax Error while loading YAML.


The error appears to have been in '/home/oracle/export.yml': line 3, column 
3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  - hosts: node02
  vars:
  ^ here

Regards,
Abdul

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5e2d2fb4-203b-45a6-9bc6-ef095588abc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to