Closed sathishbbala closed 4 years ago
What is the problem you're trying to solve?
Here is my code:
hosts: localhost user: oracle gather_facts: false
vars: ansible_python_interpreter: /bin/python3 oracle_home: oraclehost: oracleport: oracleservice: oracleuser: sys oraclepassword: oraclemode: sysdba oracle_env: ORACLE_HOME: "{{ oracle_home }}" LD_LIBRARY_PATH: "{{ oracle_home }}"
cdb_common_parameters:
tasks:
debug: msg: "{{ hostvars['localhost']['ansible_python_interpreter'] }}"
name: set parameter oracle_parameter: hostname={{ oraclehost }} port={{ oracleport }} service_name={{ oracleservice }} user={{ oracleuser }} mode={{ oraclemode }} password={{ oraclepassword }} name={{ item.name }} value={{ item.value }} state=present scope=spfile sid='*' with_items: "{{ cdb_common_parameters }}"
I ran into an error with this piece of code earlier but not now. Not sure what changed.
Ok, so it’s not a problem anymore?
No, no errors now
Can someone please help me understand why I am needed to change the following code?