diff --git a/inventory.example b/inventory.example index a8bb48e..007c343 100755 --- a/inventory.example +++ b/inventory.example @@ -1,5 +1,5 @@ [tootbot] -user@host newsbots_password=my_password +user@host my_email_host=gmail.com newsbots_password=my_password [all:vars] ansible_connection=ssh diff --git a/templates/run-bot.sh b/templates/run-bot.sh index aa18c82..4ec7236 100755 --- a/templates/run-bot.sh +++ b/templates/run-bot.sh @@ -7,28 +7,28 @@ set -e # 3- mastodon password # 4- instance domain (https:// is automatically added) -PATH="/app/tootbot" +PATH="/tootbot" cd "$PATH/telesur_en" -../source/tootbot.py telesurenglish me+telesur_en@nutomic.com {{ newsbots_password }} newsbots.eu &>> bot.log & +../source/tootbot.py telesurenglish me+telesur_en@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log & /bin/sleep 60 cd "$PATH/telesur_es" -../source/tootbot.py teleSURtv me+telesur_es@nutomic.com {{ newsbots_password }} newsbots.eu &>> bot.log & +../source/tootbot.py teleSURtv me+telesur_es@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log & /bin/sleep 60 cd "$PATH/itsgoingdown" -../source/tootbot.py IGD_News me+itsgoingdown@nutomic.com {{ newsbots_password }} newsbots.eu &>> bot.log & +../source/tootbot.py IGD_News me+itsgoingdown@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log & /bin/sleep 60 cd "$PATH/postillon" -../source/tootbot.py Der_Postillon me+postillon@nutomic.com {{ newsbots_password }} newsbots.eu &>> bot.log & +../source/tootbot.py Der_Postillon me+postillon@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log & /bin/sleep 60 cd "$PATH/telepolis" -../source/tootbot.py telepolis_news me+telepolis@nutomic.com {{ newsbots_password }} newsbots.eu &>> bot.log & +../source/tootbot.py telepolis_news me+telepolis@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log & /bin/sleep 60 cd "$PATH/granma" -../source/tootbot.py Granma_English me+granma@nutomic.com {{ newsbots_password }} newsbots.eu &>> bot.log & +../source/tootbot.py Granma_English me+granma@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log & /bin/sleep 60