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

feat: the days of uninstalling the TSM Client are OVER!!! This made sense when...

feat: the days of uninstalling the TSM Client are OVER!!! This made sense when it was first introduced, but it's becoming more and more of a nuisance, because we'd have to take care of an evergrowing list of exceptions. If it's installed (which it is in GUBS installations), we'll just keep it.
parent 19e1e4ad
No related branches found
No related tags found
No related merge requests found
Pipeline #2657 failed
...@@ -27,10 +27,6 @@ ...@@ -27,10 +27,6 @@
import_tasks: configure_package_repositories.yml import_tasks: configure_package_repositories.yml
tags: [apt, yum, packages] tags: [apt, yum, packages]
- name: TSM-Client deinstallieren
import_tasks: uninstall_tsm_client.yml
tags: [tsm]
- name: NTP-Client - name: NTP-Client
import_tasks: migrate_ntpd_to_esxi_timesync.yml import_tasks: migrate_ntpd_to_esxi_timesync.yml
when: # implicit AND when passing a list when: # implicit AND when passing a list
......
---
- name: TSM-Client deinstallieren
block:
- name: prüfen, ob noch Teile des TSM-Clients installiert sind
block:
- name: prüfen, ob SystemD Unitfile installiert ist
ansible.builtin.command: systemctl list-unit-files dsmcad.service
register: tsm_client_installed
failed_when:
- '"0 unit files listed." not in tsm_client_installed.stdout'
- '"1 unit files listed." not in tsm_client_installed.stdout'
- tsm_client_installed.rc >= 2
changed_when: false
# ignore_errors: true
# - name: debug
# debug:
# msg: "tsm_client_installed: {{ tsm_client_installed }}"
- name: TSM-Client entfernen
block:
- name: find out if TSM Service is enabled
ansible.builtin.command: systemctl is-enabled dsmcad.service
register: dsmcad_enabled
changed_when: false
- name: TSM-Client SystemD-Service deaktivieren
ansible.builtin.systemd:
name: "dsmcad.service"
enabled: false
state: stopped
when: dsmcad_enabled.stdout == "disabled"
- name: TSM-Client SystemD-Service entfernen
ansible.builtin.file:
path: "/etc/systemd/system/dsmcad.service"
state: absent
- name: TSM-Client Pakete deinstallieren
ansible.builtin.apt:
name: [
'gskcrypt64',
'gskssl64',
'tivsm-api64',
'tivsm-apicit',
'tivsm-ba',
'tivsm-bacit',
'tivsm-bahdw',
'tivsm-jbb'
]
state: absent
- name: TSM-Client Logfiles & Config & Systemd-Unitfile löschen
ansible.builtin.file:
path: "{{ item }}"
state: absent
loop:
- "/var/log/dsm*.log"
- "/opt/tivoli"
- "/etc/systemd/system/dsmcad.service"
when:
- ( "0 unit files listed." not in tsm_client_installed.stdout )
when:
- ansible_distribution == "Debian"
- '"backup" not in ansible_hostname'
- '"reporting" not in ansible_hostname'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment