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:
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',
toapi_map
https://github.com/F5Networks/f5-ansible-f5os/blob/90d2520752c3deef0c3c24eb266347ccdd57af80/ansible_collections/f5networks/f5os/plugins/modules/f5os_config_backup.py#L154-L161Modify
choices
inArgumentSpec
tochoices=['https','scp']
https://github.com/F5Networks/f5-ansible-f5os/blob/90d2520752c3deef0c3c24eb266347ccdd57af80/ansible_collections/f5networks/f5os/plugins/modules/f5os_config_backup.py#L410