added next folders for migration

This commit is contained in:
2026-03-10 08:54:22 +01:00
parent 4321b92003
commit 3b69def1b8
7 changed files with 211 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
- 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: create_folder_structure
tasks_from: create_ha_folder_structure.yml
when: "{{ ha}}"
- name: copy the ha docker files
ansible.builtin.include_role:
name: install_homeassistant_docker
tasks_from: copy_ha_files.yml
when: "{{ ha }}"
- name: copy the postgres docker files
ansible.builtin.include_role:
name: install_homeassistant_docker
tasks_from: copy_postgres_files.yml
when: "{{ pg }}"
- name: copy the mosquitto docker files
ansible.builtin.include_role:
name: install_homeassistant_docker
tasks_from: copy_mosquitto_files.yml
when: "{{ mq }}"
# - 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 ha start role
ansible.builtin.include_role:
name: install_homeassistant_docker
tasks_from: start_ha_docker_container.yml
when: "{{ ha }}"
- name: call the homeassistant postgres start role
ansible.builtin.include_role:
name: install_homeassistant_docker
tasks_from: start_postgres_docker_container.yml
when: "{{ pg }}"
- name: call the homeassistant mosquitto start role
ansible.builtin.include_role:
name: install_homeassistant_docker
tasks_from: start_mosquitto_docker_container.yml
when: "{{ mq }}"