--- - hosts: localhost tasks: - name: Build lights automations template: src: lights.yaml.j2 dest: automations/lights.yaml vars: lights: - entityId: light.bathroom_lights name: Bathroom Lights - entityId: light.computer_lights name: Computer Lights - entityId: light.kitchen_lights name: Kitchen Lights - entityId: light.shower_lights name: Shower Lights - entityId: light.tv_lights name: TV Lights - entityId: light.computer_computer_cave_background name: Computer Computer Cave Background - entityId: light.couch_lamp name: Couch lamp - entityId: light.desk_lightbar name: Desk Lightbar