1
0
Fork 0
myserver-configuration/roles/home_assistant/tasks/base.yml
2024-07-14 22:33:59 +02:00

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