diff options
author | Andrew Butcher <abutcher@redhat.com> | 2016-04-08 12:36:42 -0400 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2016-04-08 12:36:42 -0400 |
commit | ba4debd2aa9c808cd982030d3589443e87bb900e (patch) | |
tree | 312fe48ea34d048c33ca2a12a610bedcc2819bde /roles/openshift_hosted_facts | |
parent | 51e390459d7eda90c44d9ffd7f1199a3590beac1 (diff) | |
download | openshift-ba4debd2aa9c808cd982030d3589443e87bb900e.tar.gz openshift-ba4debd2aa9c808cd982030d3589443e87bb900e.tar.bz2 openshift-ba4debd2aa9c808cd982030d3589443e87bb900e.tar.xz openshift-ba4debd2aa9c808cd982030d3589443e87bb900e.zip |
Add openshift_hosted_facts role and remove hosted facts from openshift_common.
Diffstat (limited to 'roles/openshift_hosted_facts')
-rw-r--r-- | roles/openshift_hosted_facts/meta/main.yml | 15 | ||||
-rw-r--r-- | roles/openshift_hosted_facts/tasks/main.yml | 9 |
2 files changed, 24 insertions, 0 deletions
diff --git a/roles/openshift_hosted_facts/meta/main.yml b/roles/openshift_hosted_facts/meta/main.yml new file mode 100644 index 000000000..dd2de07bc --- /dev/null +++ b/roles/openshift_hosted_facts/meta/main.yml @@ -0,0 +1,15 @@ +--- +galaxy_info: + author: Andrew Butcher + description: OpenShift Hosted Facts + company: Red Hat, Inc. + license: Apache License, Version 2.0 + min_ansible_version: 1.9 + platforms: + - name: EL + versions: + - 7 + categories: + - cloud +dependencies: +- role: openshift_facts diff --git a/roles/openshift_hosted_facts/tasks/main.yml b/roles/openshift_hosted_facts/tasks/main.yml new file mode 100644 index 000000000..13e06e632 --- /dev/null +++ b/roles/openshift_hosted_facts/tasks/main.yml @@ -0,0 +1,9 @@ +--- +- name: Set hosted facts + openshift_facts: + role: hosted + openshift_env: "{{ item | oo_openshift_env }}" + no_log: true + with_items: + - "{{ hostvars[inventory_hostname] }}" + - "{{ hostvars }}" |