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

feat: add installation for TA tools

parent e30735e0
No related branches found
No related tags found
No related merge requests found
---
- name: install Git (prerequisite for ansible.builtin.git)
apt:
name: "git"
state: latest
- name: checkout ta-tools repo
git:
repo: "https://git.slub-dresden.de/digital-preservation/tools-for-technical-analysts.git"
dest: "/tmp/tools-for-technical-analysts/"
# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/copy_module.html
# 'If path is a directory, it is copied recursively. In this case, if path ends
# with "/", only inside contents of that directory are copied to destination.'
- name: install ta-tools
copy:
src: "/tmp/tools-for-technical-analysts/{{ item.src }}"
dest: "{{ item.dest }}"
remote_src: true
loop:
- src: "bin/"
dest: "/usr/local/bin/"
- src: "lib/"
dest: "/usr/local/perl/"
- name: set execution bit for ta-tools script
file:
path: "/usr/local/bin/ta-tool.pl"
mode: "0755"
......@@ -61,6 +61,10 @@
import_tasks: configure_iptables_externalusers.yml
tags: [iptables]
- name: install tools for Technical Analysts
import_tasks: "install_ta_tools.yml"
tags: [ta, apt]
- name: cleanup remainders of METS-based SubApp
import_tasks: cleanup_legacy.yml
tags: [cleanup]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment