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

Feature icc repair

parent 3c8debdd
No related branches found
No related tags found
1 merge request!1Feature icc repair
---
- hosts: "localhost"
connection: local
# Collect facts from remote system? Possible values: true, false
gather_facts: true
# any_error_fatal will mark all the hosts as failed if fails and immediately abort the playbook execution. Possible values: true, false
any_errors_fatal: false
# max_fail_percentage allows you to abort the play if certain threshold of failures have been reached.
max_fail_percentage: 30
serial: 30
# hide sensitive information in verbose/debugging output from others. Possible values: true, false
no_log: false
# execution strategy, possible values: debug, linear, serial, free (https://docs.ansible.com/ansible/latest/user_guide/playbooks_strategies.html)
strategy: linear
roles:
- { role: ansible_lza_repair, become: true }
......@@ -4,6 +4,7 @@
path: "{{ item.name }}"
loop: "{{ vault_nfs_mounts | flatten(levels=1) }}"
register: missing_mountpoints
tags: [ci]
- debug:
# var: missing_mountpoints
......@@ -19,6 +20,7 @@
state: directory
loop: "{{ missing_mountpoints.results | flatten(levels=1) }}"
when: not item.stat.exists
tags: [ci]
- name: NFS-Shares mounten
mount:
......
---
- name: Install/Update Debian packages
- name: Install/Update required Debian base packages
apt:
state: present
name: [
'libtiff-tools',
'logrotate',
'lsb-release',
'nfs-common',
......
......@@ -4,13 +4,16 @@
- name: öffentlichen Schlüssel hinzufügen (sonst muss bei jeder Installation eine Warnmeldung bestätigt werden)
apt_key:
url: "{{ vault_debrepo_url }}deb-repository/pub.gpg.key"
state:
when: ansible_distribution_major_version == '11'
tags: [apt, aptkey]
- name: SLUB-lokales Debian-Repository für Installation der SubApp in /etc/apt/sources.list.d/ eintragen
apt_repository:
repo: "deb {{ vault_debrepo_url }}deb-repository buster main"
repo: "deb {{ vault_debrepo_url }}deb-repository bullseye main"
state: present
update_cache: "yes"
mode: "0644"
when: ansible_distribution_major_version == '11'
tags: [apt]
when: "ansible_facts['distribution'] == 'Debian'"
......@@ -49,12 +52,15 @@
# FHS 3.0 specifies the correct path for the config:
# https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s09.html
- name: install checkit_tiff config
copy:
src: "/usr/share/checkit_tiff/example_configs/cit_tiff6_baseline_SLUB.cfg"
dest: "/usr/local/etc/cit_tiff6_baseline_SLUB.cfg"
synchronize:
src: "/usr/share/checkit_tiff_upcoming/example_configs/"
dest: "/usr/local/etc/"
owner: "{{ vault_service_user }}"
group: "{{ vault_service_user }}"
mode: 0600
rsync_opts:
- "--include='*.cfg'"
- "--exclude='*'"
- name: create caching directory
file:
......@@ -76,7 +82,7 @@
owner: "{{ vault_service_user }}"
group: "{{ vault_service_user }}"
with_items:
- src: "/usr/bin/checkit_tiff"
- src: "/usr/bin/checkit_tiff_upcoming"
dest: "/home/{{ vault_service_user }}/.config/repair/bin/checkit_tiff"
- src: "/usr/bin/fixit_tiff"
dest: "/home/{{ vault_service_user }}/.config/repair/bin/fixit_tiff"
......
......@@ -11,12 +11,12 @@
### PAKETINSTALLATIONEN ###
- name: install packages
import_tasks: install-packages.yml
tags: [apt]
tags: [apt, ci]
### USER IN GRUPPEN EINFUEGEN ###
- name: create users and groups
import_tasks: create-users-groups.yml
tags: [users]
tags: [users, ci]
### MOUNTPOINTS ANLEGEN, EINTRAGEN & MOUNTEN ###
- name: configure nfs mounts
......@@ -26,7 +26,7 @@
### INSTALLATION REPARATURTOOLS ###
- name: install repairtools
import_tasks: install-repair-tools.yml
tags: [repairtools]
tags: [repairtools, ci]
### INSTALLATION SYSTEMD SERVICES
- name: install SystemD-Services
......
---
tool_versions:
- package_name: "checkit-tiff"
version: "1.0.0"
- package_name: "checkit-tiff-upcoming"
version: "1.3.1"
- package_name: "fixit-tiff"
version: "0.1.3"
version: "1.3.2"
- package_name: "libtiff-tools"
version: "4.2.0-1+deb11u1"
- package_name: "libslub-lza-repair-perl"
version: "0.9.15*"
version: "0.9.17-1"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment