From cf7048e336145d17a7e372e83c7921260f3f0b3b Mon Sep 17 00:00:00 2001 From: Fabian Ohler Date: Sat, 22 May 2021 23:29:44 +0200 Subject: [PATCH 1/2] Use ansible-galaxy during updates This mechanism is already used for the installation process. --- docs/administration.rst | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/docs/administration.rst b/docs/administration.rst index c9a5650f0..8284bbf61 100644 --- a/docs/administration.rst +++ b/docs/administration.rst @@ -149,22 +149,15 @@ Ansible Route Most of the update process is automated when using the ansible role. -1. Backup your defined role variables file outside the paperless source-tree: +1. Update the role to the release tag you want to update to making sure the ansible scripts are compatible: .. code:: shell-session - $ cp ansible/vars.yml ~/vars.yml.old + $ ansible-galaxy install git+https://github.com/jonaswinkler/paperless-ng.git,ng-1.4.4 --force -2. Pull the release tag you want to update to: +2. Update the role variable definitions ``vars/paperless-ng.yml`` (where appropriate). - .. code:: shell-session - - $ git fetch --all - $ git checkout ng-0.9.14 - -3. Update the role variable definitions ``ansible/vars.yml`` (where appropriate). - -4. Run the ansible playbook you created created during :ref:`installation ` again: +3. Run the ansible playbook you created created during :ref:`installation ` again: .. note:: From 61534fb29dda47583b02edb80cd7f8c2b1388dd7 Mon Sep 17 00:00:00 2001 From: Fabian Ohler Date: Mon, 24 May 2021 15:27:11 +0200 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Fabian Koller --- docs/administration.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/administration.rst b/docs/administration.rst index 8284bbf61..6f017db11 100644 --- a/docs/administration.rst +++ b/docs/administration.rst @@ -149,11 +149,11 @@ Ansible Route Most of the update process is automated when using the ansible role. -1. Update the role to the release tag you want to update to making sure the ansible scripts are compatible: +1. Update the role to the target release tag to make sure the ansible scripts are compatible: .. code:: shell-session - $ ansible-galaxy install git+https://github.com/jonaswinkler/paperless-ng.git,ng-1.4.4 --force + $ ansible-galaxy install git+https://github.com/jonaswinkler/paperless-ng.git,master --force 2. Update the role variable definitions ``vars/paperless-ng.yml`` (where appropriate).