-
Notifications
You must be signed in to change notification settings - Fork 0
/
delete_cert.yml
46 lines (40 loc) · 1.31 KB
/
delete_cert.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
###############################################################################
# © Copyright IBM Corporation 2020, 2021
###############################################################################
- hosts: all
collections:
- ibm.ibm_zos_core
gather_facts: false
environment: "{{ environment_vars }}"
vars:
owner_id: 'STCUSR'
cert_type: 'USER'
cert_label: 'zosConnectServerCert2'
check_name: 'IBMRACF,RACF_CERTIFICATE_EXPIRATION'
tasks:
- include_role:
name: issue_tso_cmd
vars:
task_description: 'Deleting cert {{cert_label}}'
command:
- RACDCERT ID({{ owner_id}}) DELETE(LABEL('{{cert_label}}'))
when: cert_type == 'USER'
- include_role:
name: issue_tso_cmd
vars:
task_description: 'Deleting cert {{cert_label}}'
command:
- RACDCERT CERTAUTH DELETE(LABEL('{{cert_label}}'))
when: cert_type == 'CERTAUTH'
- include_role:
name: issue_tso_cmd
vars:
task_description: 'Deleting cert {{cert_label}}'
command:
- RACDCERT SITE DELETE(LABEL('{{cert_label}}'))
when: cert_type == 'SITE'
- include_role:
name: issue_operator_cmd
vars:
task_description: 'Run Health Checker'
command: "F HZSPROC,RUN,CHECK=({{check_name}})"