Hi All

i'm trying to migrate my Oracle installation from Puppet to Ansible. As i 
need severyl ORACLE_HOME on one server i have defned the following 
dictionary variable:

oracle_app_directory=/app
oracle_db_homes:
  dbhome_1:
    version: 12.1.0
    path: "{{ oracle_app_directory }}/oracle/product/12.1.0/dbhome_1"
    installation_files_directory: /share/oracle/12.1.0/patches
    installation_files:
    - linuxamd64_12c_database_1of2.zip
    - linuxamd64_12c_database_2of2.zip
    unpack_directory: /share/oracle/12.1.0/unpacked
  dbhome_2:
    version: 11.2.0
    path: "{{ oracle_app_directory }}/oracle/product/11.2.0/dbhome_1"
    installation_files_directory: /share/oracle/11.2.0/patches
    installation_files:
    - linuxamd64_11g_database_1of2.zip
    - linuxamd64_11g_database_2of2.zip
    unpack_directory: /share/oracle/11.2.0/unpacked

I need to loop over the dictionary (oracle_db_homes) to unpack the files 
(installation_files) for each defined ORACLE_HOME into a directory 
(unpack_directory). 

How can i do that with Ansible ?

-- 
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/d10ea6c1-dcff-4a9e-bbd0-fbfe55f50dcb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to