summaryrefslogtreecommitdiffstats
path: root/playbooks/gce/openshift-cluster
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2016-02-15 09:28:07 -0500
committerThomas Wiest <twiest@users.noreply.github.com>2016-02-15 09:28:07 -0500
commit09e6021f4ccade0d874436121875642e8dd5f696 (patch)
tree7adec61288101f7d690154b6cacc3001c0661bda /playbooks/gce/openshift-cluster
parentda21865de3a5c385f1038e0bfadbb6e0c369581f (diff)
parent850a91fdec392f7bbca79065c2f191df640de1c3 (diff)
downloadopenshift-09e6021f4ccade0d874436121875642e8dd5f696.tar.gz
openshift-09e6021f4ccade0d874436121875642e8dd5f696.tar.bz2
openshift-09e6021f4ccade0d874436121875642e8dd5f696.tar.xz
openshift-09e6021f4ccade0d874436121875642e8dd5f696.zip
Merge pull request #1357 from lhuard1A/pretty_print_gce_list_cluster
Better structure the output of the list playbook
Diffstat (limited to 'playbooks/gce/openshift-cluster')
-rw-r--r--playbooks/gce/openshift-cluster/list.yml11
1 files changed, 9 insertions, 2 deletions
diff --git a/playbooks/gce/openshift-cluster/list.yml b/playbooks/gce/openshift-cluster/list.yml
index f3004ede9..992033d16 100644
--- a/playbooks/gce/openshift-cluster/list.yml
+++ b/playbooks/gce/openshift-cluster/list.yml
@@ -18,9 +18,16 @@
ansible_sudo: "{{ deployment_vars[deployment_type].sudo }}"
with_items: groups[scratch_group] | default([], true) | difference(['localhost']) | difference(groups.status_terminated | default([], true))
-- name: List instance(s)
+- name: List Hosts
hosts: oo_list_hosts
+
+- name: List Hosts
+ hosts: localhost
+ become: no
+ connection: local
gather_facts: no
+ vars_files:
+ - vars.yml
tasks:
- debug:
- msg: "public ip: {{ hostvars[inventory_hostname].gce_public_ip }} private ip:{{ hostvars[inventory_hostname].gce_private_ip }}"
+ msg: "{{ hostvars | oo_select_keys(groups[scratch_group] | default([])) | oo_pretty_print_cluster }}"