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