Skip to content

Ansible role for deploying Home assistant Docker image on Raspberry pi (tested on Raspberry pi zero wifi

Notifications You must be signed in to change notification settings

rexcze-zz/ansible-role-hassindockeronpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home assistant in Docker on Raspberry Pi

Build Status

This role sets up homeassistant in docker on Raspberry Pi. Tested on Rasperry Pi zero wifi bought in Boston the Day after RHT Summit 2017. It was quite rainy...

Requirements

This role requires internet connection, Debian (no Fedora for Raspberry Pi armv6) based host system with systemd. At least so far.

Role Variables

Variable Default value Comments (type)
docker_host_packages apt-transport-https, ca-certificates, curl, docker.io, gnupg2 Packages needed to set up docker host
docker_host_workdir /opt/hass Working directory on Docker host
docker_host_docker_enabled yes Enable Docker daemon after start
docker_host_mannge_docker_service True Manage Docker service on host
docker_host_docker_state started Start docker daemon. If not started all docker command will fail.
hass_deploy_config True Deploy (True) or not to deploy (False) homeassistant config to /path/config directory
hass_container_name homeassistant_server Docker container name
hass_image_name homeassistant/armhf-homeassistant:latest Home assistant Docker image name in Docker registry
hass_container_state started Home assistant Docker container state. To be run (started) or not (stopped)
hass_container_restart_policy always Home assistant Docker container restart policy (see Ansible or Docker docs)
hass_image_pull True Pull or not newest docker image from registry
hass_container_listen_port 443 Incoming port to our Home assistant container's default port 8123
hass_cfg_* config defaults All Home assistant configuration options are in form hass_cfg_variable_name
hass_cfg_default_url_port 8123 Port on which homeassistant listen (inside Docker container)

Dependencies

None. Hopefully.

Example Playbook

- hosts: my-belowed-and-hated-raspberry-pi-zerro-with-wifi
  roles:
     - { role: rexcze.hassindockeronpi }

License

GPLv3

About

Ansible role for deploying Home assistant Docker image on Raspberry pi (tested on Raspberry pi zero wifi

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published