File: custom_python_json_args_module.py

package info (click to toggle)
python-mitogen 0.3.0~rc1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,240 kB
  • sloc: python: 19,899; sh: 91; perl: 19; ansic: 18; makefile: 13
file content (12 lines) | stat: -rwxr-xr-x 313 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/python
# I am an Ansible Python JSONARGS module. I should receive an encoding string.

import sys

json_arguments = """<<INCLUDE_ANSIBLE_MODULE_JSON_ARGS>>"""

print("{")
print("  \"changed\": false,")
print("  \"msg\": \"Here is my input\",")
print("  \"input\": [%s]" % (json_arguments,))
print("}")