소스 검색

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)
 ...