Add Deploy Script
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
|||||||
.HA_VERSION
|
.HA_VERSION
|
||||||
.cloud
|
.cloud
|
||||||
|
.private
|
||||||
.storage
|
.storage
|
||||||
.uuid
|
.uuid
|
||||||
*.conf
|
*.conf
|
||||||
|
|||||||
3
deploy.sh
Executable file
3
deploy.sh
Executable 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
18
deploy.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user