2021-11-15 22:54:07 +00:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
|
|
|
tasks:
|
|
|
|
- name: Build lights automations
|
|
|
|
template:
|
|
|
|
src: lights.yaml.j2
|
|
|
|
dest: configuration/automations/lights.yaml
|
|
|
|
vars:
|
|
|
|
lights:
|
|
|
|
- entityId: light.bathroom_lights
|
|
|
|
name: Bathroom Lights
|
|
|
|
- entityId: light.kitchen_lights
|
|
|
|
name: Kitchen Lights
|
|
|
|
- entityId: light.shower_lights
|
|
|
|
name: Shower Lights
|
|
|
|
- entityId: light.couch_lights
|
|
|
|
name: Couch Lights
|
|
|
|
- entityId: light.desk_lightbar
|
|
|
|
name: Desk Lightbar
|
2021-12-14 15:09:31 +00:00
|
|
|
- entityId: light.office
|
|
|
|
name: Office lamp
|
2021-11-15 22:54:07 +00:00
|
|
|
- name: Concat scripts
|
|
|
|
ansible.builtin.assemble:
|
|
|
|
src: scripts
|
|
|
|
dest: configuration/scripts.yaml
|