浏览代码

refer to subscription from role var

Grega Bremec 7 月之前
父节点
当前提交
fbfddb10fd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      playbooks/roles/remove-operators/tasks/main.yml

+ 2 - 2
playbooks/roles/remove-operators/tasks/main.yml

@@ -37,8 +37,8 @@
     validate_certs: no
     api_version: operators.coreos.com/v1
     kind: subscription
-    name: "{{ sub_name }}"
-    namespace: "{{ sub_nspc }}"
+    name: "{{ role.sub_name }}"
+    namespace: "{{ role.sub_nspc }}"
     state: absent
 
 - name: Do post-cleanup