mirror of https://github.com/jumpserver/jumpserver
parent
b7be5d14e0
commit
d6c4017a2e
|
@ -493,8 +493,8 @@ if __name__ == "__main__":
|
|||
# # "ansible_become_user": "root",
|
||||
# "ansible_become_pass": "yusky0902",
|
||||
}]
|
||||
cmd = Command(resource)
|
||||
print cmd.run('ls')
|
||||
cmd.run('ls',pattern='*')
|
||||
print cmd.results_raw
|
||||
|
||||
# resource = [{"hostname": "192.168.10.148", "port": "22", "username": "root", "password": "xxx"}]
|
||||
# task = Tasks(resource)
|
||||
|
|
Loading…
Reference in New Issue