added next folders for migration
This commit is contained in:
63
playbooks/pi_install_home-assistant.yml
Normal file
63
playbooks/pi_install_home-assistant.yml
Normal 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 }}"
|
||||
Reference in New Issue
Block a user