diff --git a/defaults/main.yml b/defaults/main.yml index 568d8e6..9494f11 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -29,16 +29,3 @@ cups_remote_admin_enabled: False cups_system_groups: - root - "{{ cups_admin_group }}" - -cups_iptables_enabled: False -cups_open_ports: - - name: allow_cups_ipp - rules: | - -A INPUT -m state --state NEW -p tcp --dport 631 -j ACCEPT - -A OUTPUT -m state --state NEW -p tcp --dport 631 -j ACCEPT - state: present - - name: allow_cups_dnssd - rules: | - -A OUTPUT -m state --state NEW -p tcp --dport 5353 -j ACCEPT - -A OUTPUT -m state --state NEW -p udp --dport 5353 -j ACCEPT - state: present diff --git a/tasks/install.yml b/tasks/install.yml index 0f7d2ee..cf7a20d 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -31,17 +31,5 @@ module_arguments: "{{ item.arguments | default(omit) }}" new_module_path: "{{ item.new_module }}" loop: "{{ __pam_config }}" - - - 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: "{{ cups_open_ports }}" - loop_control: - label: "{{ item.name }}" - when: cups_iptables_enabled become: True become_user: root