Skip to content

Instantly share code, notes, and snippets.

View matthewcosgrove's full-sized avatar

Matthew Cosgrove matthewcosgrove

View GitHub Profile
#@ load("@ytt:data", "data")
#@ load("@ytt:template", "template")
#@ def parse(deployment):
#@ key = "{}".format(deployment.ip)
#@ return {key: {"idrac_ip": "{{ inventory_hostname }}","catalog_xml": deployment.catalogXml}}
#@ end
all:
hosts:
#@ load("@ytt:data", "data")
all:
hosts: #@ data.values
vars:
ansible_connection: local