diff --git a/playbooks/apps/bin.yaml b/playbooks/apps/bin.yaml index b9fdb24..b3812a1 100644 --- a/playbooks/apps/bin.yaml +++ b/playbooks/apps/bin.yaml @@ -67,3 +67,65 @@ 3466633264626636620a613634653933333332386365393639343030616234376537373635343237 37373364303732343264623239353837613435363363393862383765376435376166343237333664 3330623266383462666564376166373032393361653234633863 + downloader_freebox_username: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 33636161363132333137313536613165393466303436306130376264383834663439346366383765 + 6335636531666539376439383435363430613638383263370a613661386636366534626564393732 + 35666137373762323438376666303337363332653865316534383338616432326663303734376364 + 3361663038633835610a356536373832663661333234663564323863383032613035646262633065 + 3736 + downloader_freebox_password: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 36376537343534363661356264326638636364333737653239363433326139303731366131393662 + 6330303263383739393935623132643431623764316265300a636563303239343432633332643939 + 63373965316165353930343966333337393136633239396261353566633638386331646631393730 + 3266386637653732640a393538346532353332333530303338636439653432323131643864356337 + 66646165376330643132653333393730643337356639613862616430623635376238 + + downloader_free_mobile_username: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 63323964626435316365343261633534396439356636616366376565363338323337343263313661 + 3764336135633062613037656137343965366339353864630a356264336636663136613833663330 + 38656165336265636333373532656137396130346363383739616363636436333733373938336337 + 6331366663336266300a633536666364333931383837313030646638346561323435653933396363 + 6665 + downloader_free_mobile_password: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 65656539386465616638613537633861623161633537643035333466326432323464376333646530 + 3637643931626537393864316639366636653431383433360a383532353239376636613033376233 + 34393732633031633738313638306637366234386337383166303830353838663237636131363435 + 3061303733373135310a353038316532396263653033303662313661333432333239626137353261 + 32346530373030393566613936373535396533366663393963636536323065343136 + + downloader_eau_lyon_username: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 65653063376334393438393561633533323463643230353061633730313033303533386362313230 + 6161626436326435616461656235653331663532353734300a643830366530613336313939363562 + 36336366643837326235633031643439306535323163646563393237616331303766333435656332 + 6566393738366534320a303062383930333231323832623935343230383135363961373861623861 + 3330 + downloader_eau_lyon_password: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 39613235383233373765376133613439396239336434353566633365393265323831366661316439 + 3634323064383037343865323766363732623763623863360a613030633162663137376434373136 + 31353661393462663633373766353561613137626364646437613239313866383837626138663466 + 6630663164393032360a636234306466643064386436646435373930643165336265616165656537 + 39353663646664383936336162626430336164656135323063373034626332623563633731396462 + 64353036396137626439626239313530393163616336353232663133633034323830313031616366 + 396666303765396465636330343130303230 + downloader_shiva_username: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 65316236323834306536646130373938623730373637393761323433316266383766396430636539 + 6166333938396230356238366665326232666238636135360a373831633562333831316532333833 + 36333835613434363937386538313161336538326132613637623462346539333964393536316435 + 6135376532396161620a313064333936326337343832646566623439636130393165616130306662 + 36373037393435363364303736316665623862613736323966643730343261376265 + downloader_shiva_password: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 61353235626630643130663430623861376538326266633739653231363538326635383361363961 + 3931653939376237643234393337373664333734656466370a303332363930303664303139363536 + 61363136343930326233626435373632373265646131323531663635313837356636613861636238 + 6131306331313564610a383861353130643933633337643764346266373861366238613466356165 + 36623833376262313663633666393261636335653731303264643430613935386235333930363836 + 33323735346565643438636466383937646233343935396536356233323938383335323838313863 + 303064613333373261636564633533313965 diff --git a/playbooks/apps/paperless-ngx.yaml b/playbooks/apps/paperless-ngx.yaml index 7652426..8b08197 100644 --- a/playbooks/apps/paperless-ngx.yaml +++ b/playbooks/apps/paperless-ngx.yaml @@ -25,50 +25,3 @@ 30333564313630346661333931623266313465333665343930383438353961376437343637646364 6532666134663636660a656537363262646437366135353661656264356337643039363439353731 3930 - - downloader_freebox_username: !vault | - $ANSIBLE_VAULT;1.1;AES256 - 33636161363132333137313536613165393466303436306130376264383834663439346366383765 - 6335636531666539376439383435363430613638383263370a613661386636366534626564393732 - 35666137373762323438376666303337363332653865316534383338616432326663303734376364 - 3361663038633835610a356536373832663661333234663564323863383032613035646262633065 - 3736 - downloader_freebox_password: !vault | - $ANSIBLE_VAULT;1.1;AES256 - 36376537343534363661356264326638636364333737653239363433326139303731366131393662 - 6330303263383739393935623132643431623764316265300a636563303239343432633332643939 - 63373965316165353930343966333337393136633239396261353566633638386331646631393730 - 3266386637653732640a393538346532353332333530303338636439653432323131643864356337 - 66646165376330643132653333393730643337356639613862616430623635376238 - - downloader_free_mobile_username: !vault | - $ANSIBLE_VAULT;1.1;AES256 - 63323964626435316365343261633534396439356636616366376565363338323337343263313661 - 3764336135633062613037656137343965366339353864630a356264336636663136613833663330 - 38656165336265636333373532656137396130346363383739616363636436333733373938336337 - 6331366663336266300a633536666364333931383837313030646638346561323435653933396363 - 6665 - downloader_free_mobile_password: !vault | - $ANSIBLE_VAULT;1.1;AES256 - 65656539386465616638613537633861623161633537643035333466326432323464376333646530 - 3637643931626537393864316639366636653431383433360a383532353239376636613033376233 - 34393732633031633738313638306637366234386337383166303830353838663237636131363435 - 3061303733373135310a353038316532396263653033303662313661333432333239626137353261 - 32346530373030393566613936373535396533366663393963636536323065343136 - - downloader_eau_lyon_username: !vault | - $ANSIBLE_VAULT;1.1;AES256 - 65653063376334393438393561633533323463643230353061633730313033303533386362313230 - 6161626436326435616461656235653331663532353734300a643830366530613336313939363562 - 36336366643837326235633031643439306535323163646563393237616331303766333435656332 - 6566393738366534320a303062383930333231323832623935343230383135363961373861623861 - 3330 - downloader_eau_lyon_password: !vault | - $ANSIBLE_VAULT;1.1;AES256 - 39613235383233373765376133613439396239336434353566633365393265323831366661316439 - 3634323064383037343865323766363732623763623863360a613030633162663137376434373136 - 31353661393462663633373766353561613137626364646437613239313866383837626138663466 - 6630663164393032360a636234306466643064386436646435373930643165336265616165656537 - 39353663646664383936336162626430336164656135323063373034626332623563633731396462 - 64353036396137626439626239313530393163616336353232663133633034323830313031616366 - 396666303765396465636330343130303230 diff --git a/playbooks/apps/templates/paperless-ngx/download-eau-du-grand-lyon.j2 b/playbooks/apps/templates/bin/download-eau-du-grand-lyon.j2 similarity index 100% rename from playbooks/apps/templates/paperless-ngx/download-eau-du-grand-lyon.j2 rename to playbooks/apps/templates/bin/download-eau-du-grand-lyon.j2 diff --git a/playbooks/apps/templates/paperless-ngx/download-free-mobile.j2 b/playbooks/apps/templates/bin/download-free-mobile.j2 similarity index 100% rename from playbooks/apps/templates/paperless-ngx/download-free-mobile.j2 rename to playbooks/apps/templates/bin/download-free-mobile.j2 diff --git a/playbooks/apps/templates/paperless-ngx/download-freebox.j2 b/playbooks/apps/templates/bin/download-freebox.j2 similarity index 100% rename from playbooks/apps/templates/paperless-ngx/download-freebox.j2 rename to playbooks/apps/templates/bin/download-freebox.j2 diff --git a/playbooks/apps/templates/bin/download-shiva.j2 b/playbooks/apps/templates/bin/download-shiva.j2 new file mode 100755 index 0000000..5a7013c --- /dev/null +++ b/playbooks/apps/templates/bin/download-shiva.j2 @@ -0,0 +1,5 @@ +#!/bin/bash +set -euo pipefail + +pushd /mnt/data/paperless-ngx +./downloader shiva -o consume -u '{{downloader_shiva_username}}' -p '{{downloader_shiva_password}}' --headless diff --git a/playbooks/system/cron.yaml b/playbooks/system/cron.yaml index 57455a7..45334b3 100644 --- a/playbooks/system/cron.yaml +++ b/playbooks/system/cron.yaml @@ -83,14 +83,14 @@ minute: 0 hour: 13 day: 5 - job: /mnt/data/bin/healthcheck downloader /mnt/data/paperless-ngx/download-freebox + job: /mnt/data/bin/healthcheck downloader /mnt/data/bin/download-freebox - name: Cron - Download Free Mobile invoice ansible.builtin.cron: name: Download Free Mobile invoice minute: 0 hour: 13 day: 30 - job: /mnt/data/bin/healthcheck downloader /mnt/data/paperless-ngx/download-free-mobile + job: /mnt/data/bin/healthcheck downloader /mnt/data/bin/download-free-mobile - name: Cron - Download Eau du Grand Lyon invoice ansible.builtin.cron: name: Download Eau du Grand Lyon invoice @@ -98,4 +98,11 @@ hour: 13 day: 10 month: "6,12" - job: /mnt/data/bin/healthcheck downloader /mnt/data/paperless-ngx/download-eau-du-grand-lyon + job: /mnt/data/bin/healthcheck downloader /mnt/data/bin/download-eau-du-grand-lyon + - name: Cron - Download Shiva payslip + ansible.builtin.cron: + name: Download Shiva payslip + minute: 0 + hour: 13 + day: 10 + job: /mnt/data/bin/healthcheck downloader /mnt/data/bin/download-shiva