From 1235a83f6ef671fbbc8989674741838dc14f263b Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 7 Dec 2024 11:05:21 +0100 Subject: [PATCH] add octopus downloader --- playbooks/apps/bin.yaml | 15 +++++++++++++++ playbooks/apps/templates/bin/download-octopus.j2 | 5 +++++ 2 files changed, 20 insertions(+) create mode 100755 playbooks/apps/templates/bin/download-octopus.j2 diff --git a/playbooks/apps/bin.yaml b/playbooks/apps/bin.yaml index 90df744..acd6043 100644 --- a/playbooks/apps/bin.yaml +++ b/playbooks/apps/bin.yaml @@ -143,3 +143,18 @@ 34396239666462346132663964356139363762343063666433383863313264386635356639643363 3066373833386564630a653765313666363138646533376134666330656237366236376361353261 3539 + downloader_octopus_username: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 37326533383461646433383637663038363165633634383836616637613630323336623831353130 + 3634643637373037663038633337653237343364346563360a646234663165663661666462346235 + 65386432323736646564353862373232303532666237366638363139316265643866323534326537 + 3633313061653739390a613731353532323239613065303834373132643063366631373537323139 + 30613234396333613231626364383633656362356330626639363339643038613739 + downloader_octopus_password: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 65303265303734653362313530643233623133343765386534343863623433653630636234643935 + 3932353139353431336236643932663630323766333161630a373130643531356261306135383436 + 39376164366630373637646266356433626236623866333438376231303731363231363530393939 + 6431373132373937610a633035373636303964626165383939356163356433353831326237313539 + 64663534633632333937316531383335313162396134356437613336353166613563353830343432 + 6665323536613033636537333333343765613564333661623030 diff --git a/playbooks/apps/templates/bin/download-octopus.j2 b/playbooks/apps/templates/bin/download-octopus.j2 new file mode 100755 index 0000000..5b5de27 --- /dev/null +++ b/playbooks/apps/templates/bin/download-octopus.j2 @@ -0,0 +1,5 @@ +#!/bin/bash +set -euo pipefail + +pushd /mnt/data/paperless-ngx +./downloader freebox -o consume -u '{{downloader_octopus_username}}' -p '{{downloader_octopus_password}}' --headless