Skip to content
Snippets Groups Projects
Commit bd05e3bb authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix bugs for changes in 2022.6

parent 71f2166e
Branches
Tags
No related merge requests found
home_assistant_image: ghcr.io/home-assistant/home-assistant:stable
......@@ -4,12 +4,13 @@
- name: Re-create the hass container
docker_container:
name: home-assistant
image: homeassistant/home-assistant
init: yes
image: '{{ home_assistant_image }}'
init: no
state: started
recreate: yes
network_mode: host
restart_policy: always
restart_policy: unless-stopped
privileged: yes
volumes:
- /opt/home-assistant:/config
- /etc/localtime:/etc/localtime:ro
......@@ -32,16 +33,4 @@
command: docker exec home-assistant /bin/bash -c "cp -r /config/patches/site-packages /usr/local/lib/python3.9/"
- name: Re-start the hass container
docker_container:
name: home-assistant
image: homeassistant/home-assistant
init: yes
state: started
restart: yes
network_mode: host
restart_policy: always
volumes:
- /opt/home-assistant:/config
- /etc/localtime:/etc/localtime:ro
- /root/.ssh:/root/.ssh
- '{{ home_assistant_media_path }}:/media'
command: docker restart home-assistant
......@@ -3,7 +3,7 @@
- name: Pull docker image
docker_image:
name: homeassistant/home-assistant
name: '{{ home_assistant_image }}'
source: pull
force_source: yes
notify:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment