From fc61d044f19bb03de4612455d9718a125f8655be Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Tue, 27 Apr 2021 19:06:43 -0500 Subject: [PATCH] cull redhat routines --- roles/2-common/tasks/network.yml | 42 -------------------------------- 1 file changed, 42 deletions(-) diff --git a/roles/2-common/tasks/network.yml b/roles/2-common/tasks/network.yml index 3341efaed..fb9db1587 100644 --- a/roles/2-common/tasks/network.yml +++ b/roles/2-common/tasks/network.yml @@ -1,31 +1,3 @@ -- name: Disable firewalld service (OS's other than debuntu) - service: - name: firewalld - enabled: no - when: not is_debuntu - -# Likely no longer nec as of 2019 -- name: Use larger hammer -- systemctl disable firewalld -- 2 symbolic links involved (OS's other than debuntu) - shell: systemctl disable firewalld.service - when: not is_debuntu - -- name: Mask firewalld service (OS's other than debuntu) - shell: systemctl mask firewalld - ignore_errors: yes - when: not installing and not is_debuntu - -- name: Stop firewalld service (OS's other than debuntu) - service: - name: firewalld - state: stopped - ignore_errors: yes - when: not installing and not is_debuntu - -- name: Remove /etc/systemd/system/iptables.service - file: - path: /etc/systemd/system/iptables.service - state: absent - - name: Install package networkd-dispatcher (OS's other than RaspOS) package: name: networkd-dispatcher @@ -43,20 +15,6 @@ state: present when: is_debuntu -- name: Install package iptables-services (OS's other than debuntu) - package: - name: iptables-services - state: present - when: not is_debuntu - -- name: Install /etc/sysconfig/iptables-config from template - template: - src: iptables-config - dest: /etc/sysconfig/iptables-config - # owner: root - # group: root - # mode: '0644' - - name: Install /etc/network/if-pre-up.d/iptables from template (debuntu) template: src: iptables