mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-12-21 21:41:57 +01:00
add download free mobile
This commit is contained in:
parent
88154ebebd
commit
9730cac1a6
3 changed files with 28 additions and 1 deletions
|
@ -40,3 +40,18 @@
|
|||
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
|
||||
|
|
5
playbooks/apps/templates/paperless-ngx/download-free-mobile.j2
Executable file
5
playbooks/apps/templates/paperless-ngx/download-free-mobile.j2
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
pushd /mnt/data/paperless-ngx
|
||||
./downloader free-mobile -o consume -u {{downloader_free_mobile_username}} -p {{downloader_free_mobile_password}} --headless --no-interaction
|
|
@ -83,4 +83,11 @@
|
|||
minute: 0
|
||||
hour: 13
|
||||
day: 5
|
||||
job: /mnt/data/bin/healthcheck download-freebox /mnt/data/paperless-ngx/download-freebox
|
||||
job: /mnt/data/bin/healthcheck downloader /mnt/data/paperless-ngx/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
|
||||
|
|
Loading…
Reference in a new issue