Home

Awesome

ovv.paperless

Build Status

Ansible role to install and configure paperless.

Requirements

A python3 and nginx installation are required. We recommend using pyslackers.python and pyslackers.nginx.

Installation

To install this roles clone it into your roles directory.

$ git clone https://github.com/ovv/ansible-role-paperless.git ovv.paperless

If your playbook already reside inside a git repository you can clone it by using git submodules.

$ git submodule add -b master https://github.com/ovv/ansible-role-paperless.git ovv.paperless

Role Variables

Other variable and their defaults are located in defaults.

Example Playbook

- hosts: paperless
  tags:
    - paperless
  roles:
    - pyslackers.python
    - ovv.paperless
    - pyslackers.nginx
  vars:
    paperless_admin_user: admin
    paperless_admin_password: password
    paperless_admin_email: paperless@example.com
    paperless_encrypt_passphrase: passphrase
    paperless_secret_key: supersecretkey

    # pyslackers.python
    virtualenvs:
      paperless:
        path: /opt/paperless/.env
        version: 3.6.4

    # pyslackers.nginx
    nginx_sites:
      paperless:
        directory: /opt/paperless
        locations:
          - location: /static
            custom: |
              autoindex on;
              alias /opt/paperless/static;
          - location: /
            proxy_pass: http://127.0.0.1:8000