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.
ansible/test/integration/targets/gathering_facts/library/dummy1

20 lines
255 B
Bash

#!/bin/sh
CANARY="${OUTPUT_DIR}/canary.txt"
echo "$0" >> "${CANARY}"
LINES=0
until test "${LINES}" -gt 2
do
LINES=`wc -l "${CANARY}" |awk '{print $1}'`
sleep 1
done
echo '{
"changed": false,
"ansible_facts": {
"dummy": "$0"
}
}'