Added in version 1.8
-Configure device FTP function.
parameter | required | default | choices | comments |
---|---|---|---|---|
state | no | disable |
|
The state of FTP |
hostname | yes | IP Address or hostname of the Comware v7 device that has NETCONF enabled | ||
username | yes | Username used to login to the switch | ||
password | yes | Password used to login to the switch | ||
port | no | 830 | The Comware port used to connect to the switch | |
look_for_keys | no | False | Whether searching for discoverable private key files in ~/.ssh/ |
# Enabling FTP - comware_ftp: state=enable username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
Note
When using the FTP function of the device,you need to enable FTP first.