-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclean_ec.yaml
39 lines (32 loc) · 889 Bytes
/
clean_ec.yaml
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
- hosts: zvm2
collections:
- ibm.ibm_zos_core
gather_facts: no
environment: "{{ environment_vars }}"
vars_files:
- "host_vars/cicd_artifacts.yml"
tasks:
#delete generated dbds
- name: clear dbdlib
zos_data_set:
#name: IMSTESTU.ANSI.DBDLIB2({{ item }})
name: '{{ target_dbdlib }}({{ item }})'
state: absent
type: MEMBER
loop: '{{ dbds }}'
#Delete generates psbs
- name: clear psblib
zos_data_set:
#name: IMSTESTU.ANSI.PSBLIB2({{ item }})
name: '{{ target_psblib }}({{ item }})'
state: absent
type: MEMBER
loop: '{{ psbs }}'
#Delete generates acbs
- name: clear acblib
zos_data_set:
#name: IMSTESTU.ANSI.ACBLIB1({{ item }})
name: '{{ target_acblib }}({{ item }})'
state: absent
type: MEMBER
loop: '{{ acbs }}'