IBM-Security / isam-ansible-roles

DEPRECATED Ansible Custom Modules, Handlers and Tasks for ISAM. Requires "ibmsecurity" python package.
Apache License 2.0
24 stars 43 forks source link

Update RP Conf Role #19

Closed wdwill2wdwill2 closed 7 years ago

wdwill2wdwill2 commented 7 years ago

The current role updates a current entry. However there are times when would like to "add" an entry to an existing stanza. (ie. logcfg=blah,blah,blah)

I tried creating a new role that uses the action ibmsecurity.isam.web.reverse_proxy.configuration.entry.add. This is the message i get.

"msg": "Error> action does not have the right set of arguments or there is a code bug!

ram-ibm commented 7 years ago

There are three roles:

update_reverseproxy_conf
set_reverseproxy_conf
add_reverseproxy_conf

The last one is the one you want for your current use case. Use update to update an existing single value, add to append to existing or non-existing entry and finally set to ensure that you get the exact set of multi-values you want assigned to an entry. It will ensure there is no more or less when you use set.

wdwill2wdwill2 commented 7 years ago

Thanks Ram. Sorry for missing those other roles