- name: Install the homeassistant docker with additional features as choosen hosts: new_hosts gather_facts: True tasks: - name: call the homeassistant stop role ansible.builtin.include_role: name: install_homeassistant_docker tasks_from: stop_docker_container.yml - name: call the install docker role ansible.builtin.include_role: name: install_homeassistant_docker tasks_from: create_folder_structure.yml - name: install homeassistant docker with grafana ansible.builtin.include_role: name: install_homeassistant_docker tasks_from: copy_files_ha-grafana.yml when: "{{ grafana }}" - name: install homeassistant docker (HA + PostgresDB) ansible.builtin.include_role: name: install homeassistant docker only tasks_from: copy_files_ha-only.yml when: "{{ ha-only }}" - name: call the homeassistant start role ansible.builtin.include_role: name: install_homeassistant_docker tasks_from: start_docker_container.yml