--- - name: Create podman folder file: path: /etc/containers/systemd state: directory mode: 0775 recurse: yes - name: Create paperless data folder file: path: "/var/paperless-ngx/data" state: directory mode: 0775 recurse: yes - name: Create paperless media folder file: path: "/var/paperless-ngx/media" state: directory mode: 0775 recurse: yes - name: Create paperless export folder file: path: "/var/paperless-ngx/export" state: directory mode: 0775 recurse: yes - name: Create paperless consume folder file: path: "/var/paperless-ngx/consume" state: directory mode: 0775 recurse: yes - name: Create paperless redis folder file: path: "/var/paperless-ngx/redis" state: directory mode: 0775 recurse: yes - name: Create paperless postgres folder file: path: "/var/paperless-ngx/postgres" state: directory mode: 0775 recurse: yes - name: Setup Podman quadlet block: - name: Copy paperless.network ansible.builtin.template: 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 Paperless-ngs Redis systemd_service: enabled: true name: paperless-ngx-redis state: started - name: Start Paperless-ngs Tika systemd_service: enabled: true name: paperless-ngx-tika state: started - name: Start Paperless-ngs Gotenberg systemd_service: enabled: true name: paperless-ngx-gotenberg state: started - name: Start Paperless-ngs Postgres systemd_service: enabled: true name: paperless-ngx-postgres state: started notify: - Restart Paperless