feat(raspberry_pi): add defaults, handlers, and secrets placeholder
This commit is contained in:
7
roles/raspberry_pi/defaults/main.yaml
Normal file
7
roles/raspberry_pi/defaults/main.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
raspberry_pi_docker_base: /opt/docker
|
||||
raspberry_pi_mosquitto_config_dir: "{{ raspberry_pi_docker_base }}/config/mosquitto"
|
||||
raspberry_pi_z2m_config_dir: "{{ raspberry_pi_docker_base }}/config/zigbee2mqtt"
|
||||
raspberry_pi_compose_dir: "{{ raspberry_pi_docker_base }}/compose"
|
||||
raspberry_pi_mosquitto_version: "2"
|
||||
raspberry_pi_z2m_version: "2"
|
||||
7
roles/raspberry_pi/handlers/main.yaml
Normal file
7
roles/raspberry_pi/handlers/main.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: Restart zigbee2mqtt
|
||||
ansible.builtin.command:
|
||||
cmd: docker compose restart zigbee2mqtt
|
||||
chdir: "{{ raspberry_pi_compose_dir }}"
|
||||
listen: restart zigbee2mqtt
|
||||
when: inventory_hostname == 'naruto'
|
||||
3
vars/group_vars/raspberry_pi/secrets.yaml
Normal file
3
vars/group_vars/raspberry_pi/secrets.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
vault_raspberry_pi:
|
||||
zigbee2mqtt:
|
||||
network_key: "GENERATE"
|
||||
Reference in New Issue
Block a user