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

On Sun, Nov 13, 2016 at 9:28 PM, Shaikh Abdul <[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/ansible-project/5e2d2fb4-203b-45a6-9bc6-ef095588abc4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAF%2BYgi576q_qM40A8FkKh2hAssbFxc4Kp9NhHNvbQcqZQLB3aQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to