Open ramraj241 opened 5 years ago
Hi Ram Raj
isam-ansible-roles already features a role 'update_management_root' to upload content, file by file in the ISAM WRP management root.
But it also happens that we have an updated internal version of this role that also supports importing management root content using a ZIP form. We have not shared this update yet but here is a snipet showing only the task/main.yml file:
- name: Update Management Root Files individually in {{ update_management_root_instance_id }}
isam:
appliance: "{{ inventory_hostname }}"
username: "{{ username }}"
password: "{{ password }}"
lmi_port: "{{ lmi_port }}"
log: "{{ log_level }}"
force: "{{ force }}"
action: ibmsecurity.isam.web.reverse_proxy.management_root.file.update
isamapi:
instance_id: "{{ update_management_root_instance_id }}"
id : "{{ item.id }}"
filename : "{{ item.filename }}"
with_items: "{{ update_management_root_idandfilename }}"
when: update_management_root_idandfilename is defined and update_management_root_instance_id is defined
notify:
- Commit Changes
- name: Update Management Root Files in {{ update_management_root_instance_id }} from {{ update_management_root_zip_filename | basename }} archive
isam:
appliance: "{{ inventory_hostname }}"
username: "{{ username }}"
password: "{{ password }}"
lmi_port: "{{ lmi_port }}"
log: "{{ log_level }}"
force: "{{ force }}"
action: ibmsecurity.isam.web.reverse_proxy.management_root.all.import_zip
isamapi:
instance_id: "{{ update_management_root_instance_id }}"
filename : "{{ update_management_root_zip_filename }}"
when: update_management_root_instance_id is defined and update_management_root_zip_filename is defined
notify:
- Commit Changes
If there is any interest, we could submit a PR in the coming days.
Cheers
Thank you
The focus has been to maintain the python code over the roles. I speculate the roles are much easier to develop / clone from existing ones. Please feel free to create new ones and submit pull requests.
HI - You should be looking today at new updates available from PR https://github.com/IBM-Security/isam-ansible-roles/pull/112
Cheers
Hi - Any more help with this issue ? Can we close it ? Thanks
Hello,
is there any plans to develop snippets role to import or upload files under management root of RP?