userlike/ansible/nginx/init.sh
2023-11-15 19:06:09 +01:00

10 lines
191 B
Bash

#!/bin/sh
set -xe
HOSTNAME=$(cat /etc/hostname)
cat << EOF > /usr/share/nginx/html/index.html
hello my friend, this is backend host "${HOSTNAME}" speaking.
have a nice day, mate.
EOF
exit 0