1#!/bin/sh
2# This file is part of Ansible
3#
4# Ansible is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation, either version 3 of the License, or
7# (at your option) any later version.
8#
9# Ansible is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with Ansible.  If not, see <http://www.gnu.org/licenses/>.
16
17if [ -f "$1" ]; then
18    . "$1"
19else
20    echo '{"msg": "No argument file provided", "failed": true}'
21    exit 1
22fi
23
24salutation=${salutation:=Hello}
25name=${name:=World}
26
27cat << EOF
28{"msg": "${salutation}, ${name}!"}
29EOF
30