mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 04:34:24 -07:00
Removing test script for ansible-connection
This commit is contained in:
parent
7e2305f953
commit
85064807af
1 changed files with 0 additions and 27 deletions
|
@ -1,27 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
import cPickle
|
|
||||||
import sys
|
|
||||||
from cStringIO import StringIO
|
|
||||||
from ansible.playbook.play_context import PlayContext
|
|
||||||
|
|
||||||
p = PlayContext()
|
|
||||||
p.connection = 'paramiko_ssh'
|
|
||||||
p.remote_addr = '192.168.122.100'
|
|
||||||
p.port = 22
|
|
||||||
p.remote_user = 'root'
|
|
||||||
p.password = ''
|
|
||||||
|
|
||||||
src = StringIO()
|
|
||||||
cPickle.dump(p.serialize(), src)
|
|
||||||
sys.stdout.write(src.getvalue())
|
|
||||||
sys.stdout.write('\n#END_INIT#\n')
|
|
||||||
sys.stdout.flush()
|
|
||||||
|
|
||||||
while True:
|
|
||||||
data = sys.stdin.readline()
|
|
||||||
if data == '':
|
|
||||||
break
|
|
||||||
if data.strip() != '':
|
|
||||||
sys.stdout.write(data)
|
|
||||||
sys.stdout.flush()
|
|
Loading…
Add table
Add a link
Reference in a new issue