Skip to content
Snippets Groups Projects
Commit 619b1eb8 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

feat: replace dzil-based installation of ta-tools by package based installation

parent b0824a0b
No related branches found
No related tags found
No related merge requests found
Pipeline #8319 failed
--- ---
- name: install Git (prerequisite for ansible.builtin.git) - name: Install TA-Tools
ansible.builtin.apt: ansible.builtin.package:
name: [ name: "tools-for-technical-analysts"
# "gcc", # needed only for Archivematica version
"git",
"libdist-zilla-perl",
]
state: latest state: latest
- name: checkout ta-tools repo - name: |
ansible.builtin.git: Remove build dependencies used for the old installation method that didn't
repo: "https://git.slub-dresden.de/digital-preservation/tools-for-technical-analysts.git" rely on a prebuilt Debian package.
dest: "/tmp/tools-for-technical-analysts/" block:
version: "version1.0-rosetta" - name: install Git (prerequisite for ansible.builtin.git)
register: ta_tools_git ansible.builtin.apt:
name: [
# Run `dzil listdeps` to get an updated list of dependencies. "gcc", # needed only for Archivematica version
# Commented dependencies are not available as Debian packages and will be "git",
# installed when running `dzil install` in the next task. "libdist-zilla-perl",
- name: install dependencies for ta-tools ]
ansible.builtin.apt: state: absent
name: [
# App::Cmd::Setup # - name: checkout ta-tools repo
# "libcurl4-gnutls-dev", # needed only for Archivematica version # ansible.builtin.git:
"libdata-printer-perl", # repo: "https://git.slub-dresden.de/digital-preservation/tools-for-technical-analysts.git"
"libdatetime-perl", # dest: "/tmp/tools-for-technical-analysts/"
"libdatetime-format-dateparse-perl", # version: "version1.0-rosetta"
# ExtUtils::MakeMaker # register: ta_tools_git
# IO::Zlib - name: REMOVE ta-tools repo
# LWP::UserAgent ansible.builtin.file:
"libextutils-pkgconfig-perl", path: "/tmp/tools-for-technical-analysts/"
"libpath-tiny-perl", state: absent
"libregexp-optimizer-perl",
"libsoap-lite-perl", # Run `dzil listdeps` to get an updated list of dependencies.
# "libtest-cmd-perl", # needed only for Archivematica version # Commented dependencies are not available as Debian packages and will be
"libtext-csv-perl", # installed when running `dzil install` in the next task.
"libyaml-perl", - name: |
] REMOVE dependencies for ta-tools. Keep only what is also listed as a
dependency in the tools-for-technical-analysts Debian package to avoid
# This is THE main purpose of this task file, so we won't run this as a handler removing and immediately reinstalling them.
# but set "noqa: no-handler" instead. ansible.builtin.apt:
# Also, OF COURSE we want to run it every time. We just pulled a fresh copy name: [
# from Git and it's onyl run when that action changed. # App::Cmd::Setup
- name: install ta-tools # "libcurl4-gnutls-dev", # needed only for Archivematica version
ansible.builtin.command: # noqa: no-changed-when # "libdata-printer-perl", # Package dependency
cmd: "dzil install" "libdatetime-perl",
chdir: "/tmp/tools-for-technical-analysts/" "libdatetime-format-dateparse-perl",
when: ta_tools_git.changed # noqa: no-handler # ExtUtils::MakeMaker
# IO::Zlib
- name: create directories needed by ta-tool # LWP::UserAgent
ansible.builtin.file: "libextutils-pkgconfig-perl",
path: "/home/{{ vault_subapp_user }}/{{ item }}/" "libpath-tiny-perl",
state: directory # "libregexp-optimizer-perl", # Package dependency
mode: "0755" # "libsoap-lite-perl", # Package dependency
owner: "{{ vault_subapp_user }}" # "libtest-cmd-perl", # needed only for Archivematica version
group: "{{ vault_subapp_group }}" "libtext-csv-perl",
loop: "libyaml-perl",
- ".cache" ]
- ".config" state: absent
# # This is THE main purpose of this task file, so we won't run this as a
# # handler, but set "noqa: no-handler" instead.
# # Also, OF COURSE we want to run it every time. We just pulled a fresh copy
# # from Git and it's onyl run when that action changed.
# - name: install ta-tools
# ansible.builtin.command: # noqa: no-changed-when
# cmd: "dzil install"
# chdir: "/tmp/tools-for-technical-analysts/"
# when: ta_tools_git.changed # noqa: no-handler
# async: 100000
- name: create directories needed by ta-tool
ansible.builtin.file:
path: "/home/{{ vault_subapp_user }}/{{ item }}/"
state: directory
mode: "0755"
owner: "{{ vault_subapp_user }}"
group: "{{ vault_subapp_group }}"
loop:
- ".cache"
- ".config"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment