sap-linuxlab / community.sap_launchpad

Automation for SAP - Collection of Ansible Modules for various tasks using SAP Launchpad APIs
Apache License 2.0
8 stars 7 forks source link

adding dedup functionality to multiple files found #6

Closed rhmk closed 1 year ago

rhmk commented 1 year ago

if a filename is found many times you can add a download preferece instead of exiting with a failure to the module.

example:

- name: download S4 Media
  community.sap_launchpad.software_center_download:
    suser_id: "{{ suser_id }}"
    suser_password: "{{ suser_password }}"
    softwarecenter_search_query: S4FND106_NW_LANG_DE.SAR
    dest: "."
    dedup: "last"
    dry_run: "{{ dryrun }}"

Options for dedup are: first, last - default is ''

This module should not break ansible compatibility but maybe direct python calls due to a change in the interface

sean-freeman commented 1 year ago

lgtm