remove iptables integration
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5c7d2b9dfa
commit
fe9b1edca5
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,6 @@
|
||||
# ---> Ansible
|
||||
*.retry
|
||||
filter/plugins/
|
||||
plugins
|
||||
library
|
||||
|
||||
# ---> Python
|
||||
|
@ -27,13 +27,6 @@ homeassistant_tls_key_path: "{{ homeassistant_base_dir }}/tls/private/mykey.pem"
|
||||
homeassistant_tls_cert_source: mycert.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: >
|
||||
# Override `/boot/cmdline.txt` with given conten. This can be necessary
|
||||
# if you use searial hardware, but be careful! Wrong configuration
|
||||
|
@ -53,17 +53,5 @@
|
||||
src: "etc/systemd/system/homeassistant.service.j2"
|
||||
dest: "/etc/systemd/system/homeassistant.service"
|
||||
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_user: root
|
||||
|
Loading…
Reference in New Issue
Block a user