summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2017-10-20 15:44:11 -0400
committerTim Bielawa <tbielawa@redhat.com>2017-10-20 16:05:52 -0400
commit6c3a0373e1a48f730e9a279a255c0f1a58613cc7 (patch)
treeeb93335f9d4025a09f390b0d9574ebe4dc4b7fdc
parent7d88f8dada9f19dd6b49af9bb539e43aaa15f138 (diff)
downloadopenshift-6c3a0373e1a48f730e9a279a255c0f1a58613cc7.tar.gz
openshift-6c3a0373e1a48f730e9a279a255c0f1a58613cc7.tar.bz2
openshift-6c3a0373e1a48f730e9a279a255c0f1a58613cc7.tar.xz
openshift-6c3a0373e1a48f730e9a279a255c0f1a58613cc7.zip
Move add_many_container_providers.yml to playbooks/byo/openshift-management with a noop task include to load filter plugins.
-rw-r--r--playbooks/byo/openshift-management/add_many_container_providers.yml (renamed from roles/openshift_management/tasks/add_many_container_providers.yml)5
l---------playbooks/byo/openshift-management/roles1
-rw-r--r--roles/openshift_management/README.md2
-rw-r--r--roles/openshift_management/tasks/noop.yml1
4 files changed, 8 insertions, 1 deletions
diff --git a/roles/openshift_management/tasks/add_many_container_providers.yml b/playbooks/byo/openshift-management/add_many_container_providers.yml
index 10a1f4c83..3ab20b94c 100644
--- a/roles/openshift_management/tasks/add_many_container_providers.yml
+++ b/playbooks/byo/openshift-management/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 }}"
diff --git a/playbooks/byo/openshift-management/roles b/playbooks/byo/openshift-management/roles
new file mode 120000
index 000000000..20c4c58cf
--- /dev/null
+++ b/playbooks/byo/openshift-management/roles
@@ -0,0 +1 @@
+../../../roles \ No newline at end of file
diff --git a/roles/openshift_management/README.md b/roles/openshift_management/README.md
index 817ad4daa..05ca27913 100644
--- a/roles/openshift_management/README.md
+++ b/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
diff --git a/roles/openshift_management/tasks/noop.yml b/roles/openshift_management/tasks/noop.yml
new file mode 100644
index 000000000..ed97d539c
--- /dev/null
+++ b/roles/openshift_management/tasks/noop.yml
@@ -0,0 +1 @@
+---