20 lines
No EOL
475 B
YAML
20 lines
No EOL
475 B
YAML
---
|
|
|
|
- name: Check home_assistant directory exist
|
|
ansible.builtin.file:
|
|
path: home_assistant
|
|
state: directory
|
|
|
|
- name: Copy template conf
|
|
ansible.builtin.template:
|
|
src: "{{ item.src }}"
|
|
dest: "home_assistant/{{ item.dest }}"
|
|
loop:
|
|
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
|
|
|
|
- name: Update and restart container
|
|
community.docker.docker_compose_v2:
|
|
project_src: home_assistant
|
|
state: present
|
|
pull: always
|
|
become: true |