Преглед на файлове

refactor into regular bunch of include_role tasks because loops

Grega Bremec преди 7 месеца
родител
ревизия
a4dce817e4
променени са 1 файла, в които са добавени 11 реда и са изтрити 3 реда
  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
 ...