Skip to content

Instantly share code, notes, and snippets.

@mikerowehl
Created June 26, 2015 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikerowehl/8a549decdf02ad18f643 to your computer and use it in GitHub Desktop.
Save mikerowehl/8a549decdf02ad18f643 to your computer and use it in GitHub Desktop.
Using a loop instead of the group directly to do some processing
- hosts: localhost
connection: local
gather_facts: false
tasks:
- name: Get tag Name
debug: msg="Host {{ item }} is tagged with {{ hostvars[item]['ec2_tag_Name'] }}"
with_items: groups.tag_COGS_dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment