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.
17 lines
267 B
Bash
17 lines
267 B
Bash
7 years ago
|
#!/bin/bash
|
||
|
# I am an Ansible WANT_JSON module.
|
||
|
|
||
|
WANT_JSON=1
|
||
|
INPUT=$1
|
||
|
|
||
|
[ ! -r "$INPUT" ] && {
|
||
|
echo "Usage: $0 <input.json>" >&2
|
||
|
exit 1
|
||
|
}
|
||
|
|
||
|
echo "{"
|
||
|
echo " \"changed\": false,"
|
||
|
echo " \"msg\": \"Here is my input\","
|
||
|
echo " \"input\": [$(< $INPUT)]"
|
||
|
echo "}"
|