Disable not wanted default_config modules
This commit is contained in:
parent
0fe1a34fc2
commit
f3e2b59650
|
@ -9,5 +9,6 @@ homeassistant_config_dir: /etc/homeassistant
|
|||
is_a_raspberrypi: false
|
||||
|
||||
homeassistant_add_to_ssl_cert_group: false
|
||||
|
||||
homeassistant_limit_nofile: 2048
|
||||
homeassistant_default_config_manifest_path: ""
|
||||
homeassistant_disabled_default_config: []
|
||||
|
|
|
@ -81,6 +81,15 @@
|
|||
notify:
|
||||
- systemctl daemon-reload
|
||||
|
||||
- name: disable not wanted default_config modules
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ homeassistant_default_config_manifest_path }}"
|
||||
regexp: ^\s*"{{ item }}"
|
||||
state: absent
|
||||
with_items: "{{ homeassistant_disabled_default_config }}"
|
||||
when: homeassistant_default_config_manifest_path|length > 0
|
||||
notify: systemctl restart homeassistant
|
||||
|
||||
- name: ensure homeassistant is enabled and started
|
||||
ansible.builtin.systemd:
|
||||
name: homeassistant
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
homeassistant_add_to_ssl_cert_group: true
|
||||
homeassistant_ssl_certificate: /var/lib/snakeoil/certs/example.org/fullchain.pem
|
||||
homeassistant_ssl_key: /var/lib/snakeoil/certs/example.org/privkey.pem
|
||||
homeassistant_disabled_default_config: ["cloud", "bluetooth", "dhcp", "zeroconf"]
|
||||
# homeassistant_influxdb_host: 127.0.0.1
|
||||
zigbee2mqtt_fresh_install: false
|
||||
radicale_servername: radicale.example.org
|
||||
|
@ -88,7 +89,7 @@
|
|||
# - ../roles/iptables
|
||||
# - ../roles/sshd
|
||||
# - ../roles/fail2ban
|
||||
# - ../roles/snake_oil_cert
|
||||
- ../roles/snake_oil_cert
|
||||
# - ../roles/users
|
||||
# - ../roles/dehydrated
|
||||
# - ../roles/nginx
|
||||
|
@ -109,7 +110,7 @@
|
|||
# beehive_canonical_url: http://10.10.10.10:8181}
|
||||
# - ../roles/mosquitto
|
||||
# - ../roles/influxdb
|
||||
# - ../roles/homeassistant
|
||||
- ../roles/homeassistant
|
||||
# - {role: ../roles/generate_ca, become: true}
|
||||
# - {role: ../roles/generate_certificate, become: true}
|
||||
# - {role: ../roles/gitea, become: true}
|
||||
|
@ -120,7 +121,7 @@
|
|||
# - ../roles/zigbee2mqtt
|
||||
# - ../roles/radicale
|
||||
# - ../roles/tailscale
|
||||
- ../roles/quasselcore
|
||||
# - ../roles/quasselcore
|
||||
# The easy ports sequece is just for test. Also don't disable strict IP
|
||||
# filtering on production.
|
||||
# - {role: ../roles/knockd, ports: [3333, 4444, 5555], network_interface: eth1, filter_ip: ""}
|
||||
|
|
Loading…
Reference in New Issue