Browse Source

Move add_many_container_providers.yml to playbooks/byo/openshift-management with a noop task include to load filter plugins.

Andrew Butcher 7 years ago
parent
commit
6c3a0373e1

+ 5 - 0
roles/openshift_management/tasks/add_many_container_providers.yml

@@ -36,6 +36,11 @@
     #   var: item.item
     # with_items: "{{ results.results }}"
 
+  # Include openshift_management for access to filter_plugins.
+  - include_role:
+      name: openshift_management
+      tasks_from: noop
+
   - name: print each result
     debug:
       msg: "{{ results.results | oo_filter_container_providers }}"

+ 1 - 0
playbooks/byo/openshift-management/roles

@@ -0,0 +1 @@
+../../../roles

+ 1 - 1
roles/openshift_management/README.md

@@ -549,7 +549,7 @@ the config file path.
 
 ```
 $ ansible-playbook -v -e container_providers_config=/tmp/cp.yml \
-      roles/openshift_management/tasks/add_many_container_providers.yml
+      playbooks/byo/openshift-management/add_many_container_providers.yml
 ```
 
 Afterwards you will find two new container providers in your

+ 1 - 0
roles/openshift_management/tasks/noop.yml

@@ -0,0 +1 @@
+---