Переглянути джерело

document csv_kill and provide a default

Grega Bremec 16 годин тому
батько
коміт
4692b8822c
1 змінених файлів з 3 додано та 2 видалено
  1. 3 2
      p0f/operators/roles/remove-operators/tasks/main.yml

+ 3 - 2
p0f/operators/roles/remove-operators/tasks/main.yml

@@ -7,6 +7,7 @@
 #     - sub_nspc          subscription namespace
 #       sub_name          subscription name
 #       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)
 #         - apiv            api version
 #           kind            resource kind
@@ -60,7 +61,7 @@
     namespace: "{{ role.sub_nspc }}"
     state: absent
   ignore_errors: yes
-  when: role.csv_kill
+  when: role.csv_kill | default(false)
 
 - name: Do post-cleanup
   kubernetes.core.k8s:
@@ -84,5 +85,5 @@
     name: "{{ role.sub_nspc }}"
     state: absent
   ignore_errors: yes
-  when: role.nsp_kill
+  when: role.nsp_kill | default(false)
 ...