2020-11-03 23:55:41 +00:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
2021-05-24 18:26:03 +00:00
|
|
|
tasks:
|
|
|
|
- name: Build lights automations
|
|
|
|
template:
|
|
|
|
src: lights.yaml.j2
|
2021-05-24 22:13:16 +00:00
|
|
|
dest: configuration/automations/lights.yaml
|
2021-05-24 18:26:03 +00:00
|
|
|
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
|
2021-05-24 21:03:45 +00:00
|
|
|
- entityId: light.desk_lightbar
|
|
|
|
name: Desk Lightbar
|
2021-05-24 22:10:22 +00:00
|
|
|
- name: Concat scripts
|
|
|
|
ansible.builtin.assemble:
|
|
|
|
src: scripts
|
2021-05-24 22:13:16 +00:00
|
|
|
dest: configuration/scripts.yaml
|