2024-10-02 23:07:09 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install defined version of Home Assistant
|
|
|
|
ansible.builtin.pip:
|
|
|
|
name:
|
|
|
|
- wheel
|
|
|
|
- psycopg2
|
|
|
|
- packaging
|
|
|
|
- uv
|
|
|
|
- netifaces
|
2025-01-01 16:34:28 +01:00
|
|
|
- av==13.1.0
|
2024-10-02 23:07:09 +02:00
|
|
|
- homeassistant=={{ ha_version }}
|
|
|
|
virtualenv: '{{ ha_venv_dir }}'
|
|
|
|
virtualenv_command: 'python{{ ha_python_version }} -m venv'
|
|
|
|
when: ha_version is defined
|
|
|
|
become: true
|
|
|
|
become_user: "{{ ha_user }}"
|
|
|
|
notify: Restart homeassistant
|
|
|
|
|
|
|
|
- name: Install latest version of Home Assistant
|
|
|
|
ansible.builtin.pip:
|
|
|
|
name:
|
|
|
|
- wheel
|
|
|
|
- psycopg2
|
|
|
|
- packaging
|
|
|
|
- uv
|
2024-11-01 15:37:58 +01:00
|
|
|
- netifaces
|
2025-01-01 16:34:28 +01:00
|
|
|
- av==13.1.0
|
2024-10-02 23:07:09 +02:00
|
|
|
- homeassistant
|
|
|
|
extra_args: "--upgrade"
|
|
|
|
virtualenv: "{{ ha_venv_dir }}"
|
|
|
|
virtualenv_command: 'python{{ ha_python_version }} -m venv'
|
|
|
|
when: ha_version is undefined
|
|
|
|
become: true
|
|
|
|
become_user: "{{ ha_user }}"
|
|
|
|
notify: Restart homeassistant
|