oravirt / ansible-oracle-modules

Oracle modules for Ansible
MIT License
214 stars 159 forks source link

Question about oracle_profile #129

Closed anandsolomon closed 4 years ago

anandsolomon commented 4 years ago

Can I create multiple profile with the same attributes ? Some this like this

profiles:
        - name:
           - profile1
           - profile2
oravirt commented 4 years ago

If you don't want to repeat the attributes for each profile, I would put the attributes for the profiles in it's own variable (like a 'common/shared' attributes variable) and reference that variable when managing the profiles.

e.g

profiles:
        - name: profile1
           attributes:
                   - aaaa
                   - bbb
        - name: profile2
           attributes:
                   - ccc                
profile_shared_attributes:
               - xxxx
               - yyyy

This way (if you want to), each profile can still have it's own set of attributes

anandsolomon commented 4 years ago

Nice, this worked. !!!