|
@@ -7,6 +7,7 @@
|
|
# - sub_nspc subscription namespace
|
|
# - sub_nspc subscription namespace
|
|
# sub_name subscription name
|
|
# sub_name subscription name
|
|
# csv_name CSV name to check for
|
|
# csv_name CSV name to check for
|
|
|
|
+# csv_kill whether to kill the csv as well (false)
|
|
# pre_cleanup pre-cleanup tasks, a list of rtypes to remove (ALL)
|
|
# pre_cleanup pre-cleanup tasks, a list of rtypes to remove (ALL)
|
|
# - apiv api version
|
|
# - apiv api version
|
|
# kind resource kind
|
|
# kind resource kind
|
|
@@ -60,7 +61,7 @@
|
|
namespace: "{{ role.sub_nspc }}"
|
|
namespace: "{{ role.sub_nspc }}"
|
|
state: absent
|
|
state: absent
|
|
ignore_errors: yes
|
|
ignore_errors: yes
|
|
- when: role.csv_kill
|
|
|
|
|
|
+ when: role.csv_kill | default(false)
|
|
|
|
|
|
- name: Do post-cleanup
|
|
- name: Do post-cleanup
|
|
kubernetes.core.k8s:
|
|
kubernetes.core.k8s:
|
|
@@ -84,5 +85,5 @@
|
|
name: "{{ role.sub_nspc }}"
|
|
name: "{{ role.sub_nspc }}"
|
|
state: absent
|
|
state: absent
|
|
ignore_errors: yes
|
|
ignore_errors: yes
|
|
- when: role.nsp_kill
|
|
|
|
|
|
+ when: role.nsp_kill | default(false)
|
|
...
|
|
...
|