diff --git a/roles/registrator/files/garaze_racunovodstvo.sh b/roles/registrator/files/garaze_racunovodstvo.sh index 28d1f7b..b1ac17f 100644 --- a/roles/registrator/files/garaze_racunovodstvo.sh +++ b/roles/registrator/files/garaze_racunovodstvo.sh @@ -1,12 +1,12 @@ #!/bin/sh -GARAZEDIR="~/garaze/tmp" +GARAZEDIR="${HOME}/garaze/tmp" # RECIPIENTS="polz@fri.uni-lj.si" # RECIPIENTS="anita.strmole@fri.uni-lj.si" # RECIPIENTS="racunovodstvo@fri.uni-lj.si" -RECIPIENTS="$(cat ~/garage_recipients.txt)" +RECIPIENTS="$(cat ${HOME}/garaze_recipients.txt)" # cd /home/registrator/siemens-spica-rilec rm $GARAZEDIR/*.xlsx -~/siemens-spica-rilec/garage_count.py --employee --calculation --format xlsx ~/data "$GARAZEDIR/garaze_{start}_{end}.xlsx" +${HOME}/siemens-spica-rilec/garage_count.py --employee --calculation --format xlsx ~/data "$GARAZEDIR/garaze_{start}_{end}.xlsx" echo "Garaže za pretekli mesec" | mail -s "Garaže za pretekli mesec" "$RECIPIENTS" -A $GARAZEDIR/*.xlsx diff --git a/roles/registrator/tasks/main.yml b/roles/registrator/tasks/main.yml index fb49f81..b527b06 100644 --- a/roles/registrator/tasks/main.yml +++ b/roles/registrator/tasks/main.yml @@ -15,7 +15,7 @@ - name: Install packages package: - name: git,py3-pip + name: git,py3-pip,mailutils,py3-openpyxl - name: Clone siemens-spica-rilec become: yes