While growing my Kubernetes cluster and working on some Ansible scripts for my infrastructure I recently realized that I’ve been under-utilizing one of the staples of ansible code, tying node-specific information to nodes in the inventory file! It was harder than I thought to use so this a quick writeup on how to do it: Given an inventory file like this: all: children: some_machine_group_name: hosts: some.machine.you.have: # possibly 'xxx.xxx.xxx.xxx' os_partition_size_gb: 128 drive_paths: ...