From b85927ad2de58938267e049b2a747ba90000c901 Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Wed, 20 Sep 2023 21:53:32 +0200 Subject: [PATCH] feat: implement template copy --- defaults/main.yml | 2 +- tasks/main.yml | 37 +++++++++++++++++++++++++++++++------ 2 files changed, 32 insertions(+), 7 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index ff9bf3a..1518d67 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -6,4 +6,4 @@ paperless_ngx_gotenberg_version: "7.8" paperless_ngx_url: "" -paperless_barcode_enable: true \ No newline at end of file +paperless_barcode_enable: false diff --git a/tasks/main.yml b/tasks/main.yml index 73f31f1..701e385 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -50,21 +50,46 @@ - name: Setup Podman quadlet block: - - name: Copy vaultwarden.container + - name: Copy paperless.network ansible.builtin.template: - src: vaultwarden.quadlet.j2 - dest: "/etc/containers/systemd/vaultwarden-{{ vaultwarden_identifier }}.container" + src: paperless.network + dest: "/etc/containers/systemd/paperless.network" + + - name: Copy paperless-ngx.container + ansible.builtin.template: + src: paperless-ngx.quadlet.j2 + dest: "/etc/containers/systemd/paperless-ngx.container" + + - name: Copy paperless-ngx-gotenberg.container + ansible.builtin.template: + src: paperless-ngx-gotenberg.quadlet.j2 + dest: "/etc/containers/systemd/paperless-ngx-gotenberg.container" + + - name: Copy paperless-ngx-postgres.container + ansible.builtin.template: + src: paperless-ngx-postgres.quadlet.j2 + dest: "/etc/containers/systemd/paperless-ngx-postgres.container" + + - name: Copy paperless-ngx-redis.container + ansible.builtin.template: + src: paperless-ngx-redis.quadlet.j2 + dest: "/etc/containers/systemd/paperless-ngx-redis.container" + + - name: Copy paperless-ngx-tika.container + ansible.builtin.template: + src: paperless-ngx-tika.quadlet.j2 + dest: "/etc/containers/systemd/paperless-ngx-tika.container" - name: "Reload systemd" ansible.builtin.systemd: daemon_reload: true when: ansible_service_mgr == "systemd" - - name: Start Vaultwardne + - name: Start Paperless-ngs systemd_service: enabled: true - name: vaultwarden-{{ vaultwarden_identifier }} + name: paperless-ngx state: started notify: - - Restart Vaultwarden + - Restart Paperless