Add Deploy Script

This commit is contained in:
2023-11-12 14:43:26 -08:00
parent 2d7eae9419
commit 5a9f690552
3 changed files with 22 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
.HA_VERSION
.cloud
.private
.storage
.uuid
*.conf

3
deploy.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
ansible-playbook -bK -i .private/inventory -u ansible --key-file .private/id_ansible deploy.yaml

18
deploy.yaml Normal file
View File

@@ -0,0 +1,18 @@
---
# Ansible Playbook to deploy Home Assistant Configuration
- name: Home Assistant | Update Configuration
hosts: hass
tasks:
- name: Home Assistant | Update Configuration
ansible.builtin.git:
repo: https://git.asymworks.com/jkrauss/home-assistant.git
dest: /srv/hass/config
notify: Home Assistant | Restart Home Assistant
handlers:
- name: Home Assistant | Restart Home Assistant
community.docker.docker_container:
name: hass
state: started
restart: true