F5Networks / f5-ansible-f5os

Collection for managing F5OS based devices
2 stars 1 forks source link

Enable SCP/SFTP for f5os_config_backup #5

Closed rgonzal1 closed 8 months ago

rgonzal1 commented 9 months ago

Is your feature request related to a problem? Please describe.

Currently, only https transport is supported for exporting the configuration. SCP / SFTP are supported protocols on the API and should be included in the module.

Describe the solution you'd like

Successful configuration backup with file export to SCP / SFTP destination

Describe alternatives you've considered

N/A

Additional context

I was able to get SCP working locally by modifying the module with the following changes:

Add 'protocol': 'protocol', to api_map https://github.com/F5Networks/f5-ansible-f5os/blob/90d2520752c3deef0c3c24eb266347ccdd57af80/ansible_collections/f5networks/f5os/plugins/modules/f5os_config_backup.py#L154-L161

Modify choices in ArgumentSpec to choices=['https','scp']

https://github.com/F5Networks/f5-ansible-f5os/blob/90d2520752c3deef0c3c24eb266347ccdd57af80/ansible_collections/f5networks/f5os/plugins/modules/f5os_config_backup.py#L410

wojtek0806 commented 8 months ago

will be added in version 1.4.0 closing