-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible: update rhel7-s390x playbook and inventory (#2952)
Emergency rebuild of our RHEL 7 s390x instances after their VMs were accidentally removed. Update the Ansible setup for RHEL 7 s390x to eliminate previously manual steps (devtoolset installation). Fixes: #2950
- Loading branch information
1 parent
0e963e3
commit 132ad1b
Showing
10 changed files
with
78 additions
and
115 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
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,11 @@ | ||
--- | ||
|
||
# Red Hat Enterprise Linux 7 | ||
|
||
- name: Enable RHEL 7 repositories | ||
community.general.rhsm_repository: | ||
name: | ||
- rhel-7-server-for-system-z-rhscl-rpms | ||
- rhel-7-server-for-system-z-rhscl-debug-rpms | ||
- rhel-7-server-for-system-z-rhscl-source-rpms | ||
state: enabled |
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 7 on s390x (LinuxONE) | ||
|
||
- name: run common RHEL 7 tasks | ||
ansible.builtin.include_tasks: rhel7.yml | ||
|
||
- name: Firewall | install iptables-services | ||
ansible.builtin.yum: | ||
name: iptables-services | ||
state: present | ||
|
||
- name: Firewall | enable iptables | ||
ansible.builtin.systemd: | ||
enabled: yes | ||
name: iptables | ||
|
||
- name: Firewall | remove firewalld | ||
ansible.builtin.yum: | ||
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
15 changes: 0 additions & 15 deletions
15
ansible/roles/jenkins-worker/tasks/partials/tap2junit/rhel7.yml
This file was deleted.
Oops, something went wrong.
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