remove iptables integration
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2019-10-28 20:02:08 +01:00
parent 5c7d2b9dfa
commit fe9b1edca5
3 changed files with 1 additions and 20 deletions

2
.gitignore vendored
View File

@ -1,6 +1,6 @@
# ---> Ansible
*.retry
filter/plugins/
plugins
library
# ---> Python

View File

@ -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

View File

@ -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