-
Notifications
You must be signed in to change notification settings - Fork 0
/
list_cert.yml
39 lines (34 loc) · 1.09 KB
/
list_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
###############################################################################
# © 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'
tasks:
- include_role:
name: issue_tso_cmd
vars:
task_description: 'Displaying cert {{cert_label}}'
command:
- RACDCERT ID({{ owner_id}}) LIST(LABEL('{{cert_label}}'))
when: cert_type == 'USER'
- include_role:
name: issue_tso_cmd
vars:
task_description: 'Displaying cert {{cert_label}}'
command:
- RACDCERT CERTAUTH LIST(LABEL('{{cert_label}}'))
when: cert_type == 'CERTAUTH'
- include_role:
name: issue_tso_cmd
vars:
task_description: 'Displaying cert {{cert_label}}'
command:
- RACDCERT SITE LIST(LABEL('{{cert_label}}'))
when: cert_type == 'SITE'