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

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