Browse Source

refactor into regular bunch of include_role tasks because loops

Grega Bremec 7 tháng trước cách đây
mục cha
commit
a4dce817e4
1 tập tin đã thay đổi với 11 bổ sung3 xóa
  1. 11 3
      playbooks/pre-flight.yml

+ 11 - 3
playbooks/pre-flight.yml

@@ -3,9 +3,17 @@
   hosts: workstation.lab.example.com
   gather_subset: min
   become: no
-  roles:
-    - role: check-env
+  tasks:
+    - include_role:
+        name: check-env
       tags: check
-    - role: fix-operators
+    - include_role:
+        name: fix-operators
       tags: fix
+    - include_role:
+        name: remove-operators
+      vars:
+        - role: "{{ item }}"
+      loop: "{{ removed_operators }}"
+      tags: prep
 ...