--- - name: Create smart home directories ansible.builtin.file: path: "{{ item }}" state: directory owner: glyptic group: docker mode: "0755" loop: - "{{ smarthome_compose_dir }}" - "{{ ha_data_dir }}" - "{{ esphome_data_dir }}" - "{{ mosquitto_data_dir }}" - "{{ mosquitto_data_dir }}/config" - "{{ mosquitto_data_dir }}/data" - "{{ mosquitto_data_dir }}/log" tags: [smarthome, homeassistant] - name: Deploy smart home compose file ansible.builtin.template: src: docker-compose.yml.j2 dest: "{{ smarthome_compose_dir }}/docker-compose.yml" owner: glyptic group: docker mode: "0644" tags: [smarthome, homeassistant] - name: Start smart home stack community.docker.docker_compose_v2: project_src: "{{ smarthome_compose_dir }}" state: present tags: [smarthome, homeassistant]