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