2020-06-27 16:16:52 +01:00
|
|
|
- name: Create home-assistant directory
|
|
|
|
file:
|
|
|
|
path: /opt/home-assistant
|
|
|
|
state: directory
|
|
|
|
owner: "{{ docker_user.name }}"
|
|
|
|
mode: "{{ docker_compose_directory_mask }}"
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Create config directory
|
|
|
|
file:
|
|
|
|
path: /opt/home-assistant/config
|
|
|
|
state: directory
|
|
|
|
mode: "{{ docker_compose_directory_mask }}"
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Install home-assistant compose file
|
|
|
|
template:
|
|
|
|
src: files/docker-compose.yml
|
|
|
|
dest: /opt/home-assistant/docker-compose.yml
|
|
|
|
mode: "{{ docker_compose_file_mask }}"
|
|
|
|
owner: "{{ docker_user.name }}"
|
|
|
|
validate: /usr/bin/docker-compose -f %s config
|
2020-06-28 20:13:12 +01:00
|
|
|
notify: restart homeassistant
|
2020-06-27 16:16:52 +01:00
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Install config
|
|
|
|
template:
|
|
|
|
src: files/configuration.yml
|
|
|
|
dest: /opt/home-assistant/config/configuration.yaml
|
|
|
|
mode: "{{ docker_compose_file_mask }}"
|
|
|
|
owner: "{{ docker_user.name }}"
|
2020-06-28 20:13:12 +01:00
|
|
|
notify: restart homeassistant
|
2020-06-27 16:16:52 +01:00
|
|
|
become: true
|
|
|
|
|
2020-06-28 17:35:49 +01:00
|
|
|
- name: Bump IGMP max memberships
|
|
|
|
sysctl:
|
|
|
|
name: net.ipv4.igmp_max_memberships
|
|
|
|
value: "40"
|
|
|
|
sysctl_set: yes
|
|
|
|
state: present
|
|
|
|
reload: yes
|
|
|
|
sysctl_file: /etc/sysctl.d/99-sysctl.conf
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Bump IGMP max MSF
|
|
|
|
sysctl:
|
|
|
|
name: net.ipv4.igmp_max_msf
|
|
|
|
value: "20"
|
|
|
|
sysctl_set: yes
|
|
|
|
state: present
|
|
|
|
reload: yes
|
|
|
|
sysctl_file: /etc/sysctl.d/99-sysctl.conf
|
|
|
|
become: true
|