mirror of https://github.com/ansible/ansible.git
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.
20 lines
255 B
Plaintext
20 lines
255 B
Plaintext
2 years ago
|
#!/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"
|
||
|
}
|
||
|
}'
|