You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
432 B
Python
21 lines
432 B
Python
![]()
6 years ago
|
# I am an Ansible new-style Python module, but I lack an interpreter.
|
||
|
|
||
|
import json
|
||
|
import sys
|
||
|
|
||
|
# This is the magic marker Ansible looks for:
|
||
|
# from ansible.module_utils.
|
||
|
|
||
|
|
||
|
def usage():
|
||
|
sys.stderr.write('Usage: %s <input.json>\n' % (sys.argv[0],))
|
||
|
sys.exit(1)
|
||
|
|
||
|
input_json = sys.stdin.read()
|
||
|
|
||
|
print "{"
|
||
|
print " \"changed\": false,"
|
||
|
print " \"msg\": \"Here is my input\","
|
||
|
print " \"input\": [%s]" % (input_json,)
|
||
|
print "}"
|