feat: implement template copy

This commit is contained in:
Lennard Brinkhaus 2023-09-20 21:53:32 +02:00
parent 19bd75c78c
commit b85927ad2d
Signed by: lennard.brinkhaus
GPG Key ID: 286421EC53998B22
2 changed files with 32 additions and 7 deletions

View File

@ -6,4 +6,4 @@ paperless_ngx_gotenberg_version: "7.8"
paperless_ngx_url: "" paperless_ngx_url: ""
paperless_barcode_enable: true paperless_barcode_enable: false

View File

@ -50,21 +50,46 @@
- name: Setup Podman quadlet - name: Setup Podman quadlet
block: block:
- name: Copy vaultwarden.container - name: Copy paperless.network
ansible.builtin.template: ansible.builtin.template:
src: vaultwarden.quadlet.j2 src: paperless.network
dest: "/etc/containers/systemd/vaultwarden-{{ vaultwarden_identifier }}.container" 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" - name: "Reload systemd"
ansible.builtin.systemd: ansible.builtin.systemd:
daemon_reload: true daemon_reload: true
when: ansible_service_mgr == "systemd" when: ansible_service_mgr == "systemd"
- name: Start Vaultwardne - name: Start Paperless-ngs
systemd_service: systemd_service:
enabled: true enabled: true
name: vaultwarden-{{ vaultwarden_identifier }} name: paperless-ngx
state: started state: started
notify: notify:
- Restart Vaultwarden - Restart Paperless