GitHub 1236 - Updated linux.scp action to not require dest_server. Instead the destination server can simply be passed as part of the destination argument
type: 'string'
description: 'Destination of files/directories'
required: true
- dest_server:
- type: 'string'
- description: 'Destination of files/directories'
- required: true
recursive:
type: 'boolean'
description: 'Boolean flag for recursive copy'
default: '/home/stanley/.ssh/stanley_rsa'
cmd:
immutable: true
- default: 'scp {{args}} -i {{keyfile}} {{source}} {{dest_server}}:{{destination}}'
+ default: 'scp {{args}} -i {{keyfile}} {{source}} {{destination}}'
args:
description: 'Command line arguments passed to cp'
default: '-o stricthostkeychecking=no -v{% if recursive == true %} -r{% endif %}{% if force == true %} -f{% endif %}'
