Skip to content

Instantly share code, notes, and snippets.

@kaz-tk
Created October 6, 2014 16:29
Show Gist options
  • Save kaz-tk/d3282ae9727493943229 to your computer and use it in GitHub Desktop.
Save kaz-tk/d3282ae9727493943229 to your computer and use it in GitHub Desktop.
- hosts: all
gather_facts: false
vars:
results:
- public_ip: "xxx.xxx.xxx.xx1"
- public_ip: "xxx.xxx.xxx.xx2"
- public_ip: "xxx.xxx.xxx.xx3"
- public_ip: "xxx.xxx.xxx.xx4"
tasks:
- debug: msg={{ results| map(attribute='public_ip')|join(',') }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment