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.
22 lines
517 B
Bash
22 lines
517 B
Bash
#!/bin/bash
|
|
# I am an Ansible old-style module.
|
|
|
|
# This line is to encourage a UnicodeDecodeError in
|
|
# integration/runner/custom_script_interpreter.yml
|
|
# see https://github.com/dw/mitogen/issues/195
|
|
# £££
|
|
INPUT=$1
|
|
|
|
[ ! -r "$INPUT" ] && {
|
|
echo "Usage: $0 <input_file>" >&2
|
|
exit 1
|
|
}
|
|
|
|
echo "{"
|
|
echo " \"changed\": false,"
|
|
echo " \"msg\": \"Here is my input\","
|
|
echo " \"filename\": \"$INPUT\","
|
|
echo " \"run_via_env\": \"$RUN_VIA_ENV\","
|
|
echo " \"input\": [\"$(cat $INPUT | tr \" \' )\"]"
|
|
echo "}"
|