-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible: update ppc64le and s390x machines
Decommission centos7-ppc64le and rhel7-s390x machines. Create new RHEL 9 test CI replacements. Add 2 GB swap to all ppc64le and s390x machines.
- Loading branch information
1 parent
1a94c74
commit 99d4777
Showing
4 changed files
with
85 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
|
||
# Red Hat Enterprise Linux 9 on s390x (LinuxONE) | ||
|
||
- name: run common RHEL 9 tasks | ||
ansible.builtin.include_tasks: rhel9.yml | ||
|
||
- name: Firewall | install iptables-services | ||
ansible.builtin.dnf: | ||
name: iptables-services | ||
state: present | ||
|
||
- name: Firewall | enable iptables | ||
ansible.builtin.systemd: | ||
enabled: yes | ||
name: iptables | ||
|
||
- name: Firewall | remove firewalld | ||
ansible.builtin.dnf: | ||
name: firewalld | ||
state: absent | ||
|
||
# The presence of /etc/sysconfig/iptables.save appears to be interfering | ||
# with rules being loaded after a system reboot, so remove. | ||
- name: Firewall | remove iptables.save | ||
ansible.builtin.file: | ||
path: /etc/sysconfig/iptables.save | ||
state: absent | ||
notify: restart iptables | ||
|
||
- name: Firewall | add rule to allow accepting multicast | ||
lineinfile: | ||
dest: /etc/sysconfig/iptables | ||
insertafter: ":OUTPUT ACCEPT.*]" | ||
line: "-A INPUT -m pkttype --pkt-type multicast -j ACCEPT" | ||
notify: restart iptables | ||
|
||
- name: Firewall | add basic rule to allow communication locally | ||
lineinfile: | ||
dest: /etc/sysconfig/iptables | ||
insertafter: ":OUTPUT ACCEPT.*]" | ||
line: "-A INPUT -s 127.0.0.1/32 -d 127.0.0.1/32 -j ACCEPT" | ||
notify: restart iptables | ||
|
||
- name: Firewall | add additional rule to allow communication from 127.0.0.2 | ||
lineinfile: | ||
dest: /etc/sysconfig/iptables | ||
insertafter: ":OUTPUT ACCEPT.*]" | ||
line: "-A INPUT -s 127.0.0.2/32 -d 127.0.0.1/32 -j ACCEPT" | ||
notify: restart iptables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters