remove iptables integration
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5c7d2b9dfa
commit
fe9b1edca5
|
@ -1,6 +1,6 @@
|
||||||
# ---> Ansible
|
# ---> Ansible
|
||||||
*.retry
|
*.retry
|
||||||
filter/plugins/
|
plugins
|
||||||
library
|
library
|
||||||
|
|
||||||
# ---> Python
|
# ---> Python
|
||||||
|
|
|
@ -27,13 +27,6 @@ homeassistant_tls_key_path: "{{ homeassistant_base_dir }}/tls/private/mykey.pem"
|
||||||
homeassistant_tls_cert_source: mycert.pem
|
homeassistant_tls_cert_source: mycert.pem
|
||||||
homeassistant_tls_key_source: mykey.pem
|
homeassistant_tls_key_source: mykey.pem
|
||||||
|
|
||||||
homeassistant_iptables_enabled: False
|
|
||||||
homeassistant_open_ports:
|
|
||||||
- name: allow_homeassistant_web
|
|
||||||
rules: |
|
|
||||||
-A INPUT -m state --state NEW -p tcp --dport {{ homeassistant_http_bind_port }} -j ACCEPT
|
|
||||||
state: present
|
|
||||||
|
|
||||||
# @var homeassistant_cmdline_override_enabled:description: >
|
# @var homeassistant_cmdline_override_enabled:description: >
|
||||||
# Override `/boot/cmdline.txt` with given conten. This can be necessary
|
# Override `/boot/cmdline.txt` with given conten. This can be necessary
|
||||||
# if you use searial hardware, but be careful! Wrong configuration
|
# if you use searial hardware, but be careful! Wrong configuration
|
||||||
|
|
|
@ -53,17 +53,5 @@
|
||||||
src: "etc/systemd/system/homeassistant.service.j2"
|
src: "etc/systemd/system/homeassistant.service.j2"
|
||||||
dest: "/etc/systemd/system/homeassistant.service"
|
dest: "/etc/systemd/system/homeassistant.service"
|
||||||
notify: __homeassistant_restart
|
notify: __homeassistant_restart
|
||||||
|
|
||||||
- name: Open ports in iptables
|
|
||||||
iptables_raw:
|
|
||||||
name: "{{ item.name }}"
|
|
||||||
rules: "{{ item.rules }}"
|
|
||||||
state: "{{ item.state }}"
|
|
||||||
weight: "{{ item.weight | default(omit) }}"
|
|
||||||
table: "{{ item.table | default(omit) }}"
|
|
||||||
loop: "{{ homeassistant_open_ports }}"
|
|
||||||
loop_control:
|
|
||||||
label: "{{ item.name }}"
|
|
||||||
when: homeassistant_iptables_enabled | bool
|
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
|
Loading…
Reference in New Issue