diff options
author | Thomas Wiest <twiest@users.noreply.github.com> | 2016-02-15 09:28:07 -0500 |
---|---|---|
committer | Thomas Wiest <twiest@users.noreply.github.com> | 2016-02-15 09:28:07 -0500 |
commit | 09e6021f4ccade0d874436121875642e8dd5f696 (patch) | |
tree | 7adec61288101f7d690154b6cacc3001c0661bda | |
parent | da21865de3a5c385f1038e0bfadbb6e0c369581f (diff) | |
parent | 850a91fdec392f7bbca79065c2f191df640de1c3 (diff) | |
download | openshift-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
-rw-r--r-- | playbooks/gce/openshift-cluster/list.yml | 11 |
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 }}" |