Added in version 1.8
Manage local_user
parameter | required | default | choices | comments |
---|---|---|---|---|
localusername | yes | Local user name | ||
group | no | User group name | ||
group | no |
|
User group nameenable or disable local user service-type ftp | |
group | no |
|
User group nameenable or disable local user service-type ftpenable or disable local user service-type http | |
group | no |
|
User group nameenable or disable local user service-type ftpenable or disable local user service-type httpenable or disable local user service-type https | |
group | no |
|
User group nameenable or disable local user service-type ftpenable or disable local user service-type httpenable or disable local user service-type httpsenable or disable local user service-type pad | |
group | no |
|
User group nameenable or disable local user service-type ftpenable or disable local user service-type httpenable or disable local user service-type httpsenable or disable local user service-type padenable or disable local user service-type ssh | |
group | no |
|
User group nameenable or disable local user service-type ftpenable or disable local user service-type httpenable or disable local user service-type httpsenable or disable local user service-type padenable or disable local user service-type sshenable or disable local user service-type telnet | |
group | no |
|
User group nameenable or disable local user service-type ftpenable or disable local user service-type httpenable or disable local user service-type httpsenable or disable local user service-type padenable or disable local user service-type sshenable or disable local user service-type telnetenable or disable local user service-type Terminal | |
ftp_dir | no | Specify work directory of local user | ||
local_user_level | no | Specify local user work level | ||
localspassword | no | Password used to login to the local user | ||
state | no | present |
|
Desired state for the interface configuration |
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/ |
# Basic Ethernet config - Before using ftp_dir , ensure it already exist in the device. e.g. flash:/ - comware_local_user: localusername=test server_ftp=True local_user_level=15 username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
Note
Before using ftp_dir , ensure it already exist in the device.Local user group specify the user group , if the device has the group then do the config ,if not , create group and config