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

feat: write IBMSP password file before first use and startup dsmcad service

parent 044310f9
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,25 @@ ...@@ -48,6 +48,25 @@
- "dsm.sys" - "dsm.sys"
notify: restart dsmcad notify: restart dsmcad
# - based on Michail Angelos Simos' Ansible Role:
# https://github.com/mikesimos/tsm-client.git
# - dsmc CLI arg ducumentation can be found at:
# https://publib.boulder.ibm.com/tividd/td/TSMC/GC32-0789-01/en_US/HTML/ans5000016.htm#HDRCMD6036
- name: write password file
command:
#use: dsmc set password <Old PW> <New PW>
cmd: "dsmc set password {{ ansible_hostname }} {{ ansible_hostname }}"
creates: "/etc/adsm/TSM.sth"
register: dsmc_result
failed_when: (dsmc_result.rc != 0) and (dsmc_result.rc != 8)
notify: restart dsmcad
- name: Start dsmcad service. This service triggers regular checks for backup schedules on the IBMSP server.
systemd:
name: "dsmcad.service"
state: started
# check is run as a logrotage PreCmd, so no Cronjob/Timer is required
- name: install check-backup scripts - name: install check-backup scripts
block: block:
- name: install Git (required by Ansible builtin Git module) - name: install Git (required by Ansible builtin Git module)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment