Skip to content

Commit

Permalink
Added 'RedHat' to support RHEL 8.4 (i.e., k3s-io/k3s-ansible#/128 [ra…
Browse files Browse the repository at this point in the history
…zurac])

Signed-off-by: Jon S. Stumpf <[email protected]>
  • Loading branch information
jon-stumpf committed Dec 23, 2021
1 parent d4e5d3a commit bf5b3de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions roles/prereq/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Set SELinux to disabled state
selinux:
state: disabled
when: ansible_distribution in ['CentOS', 'Red Hat Enterprise Linux']
when: ansible_distribution in ['CentOS', 'RedHat', 'Red Hat Enterprise Linux']

- name: Enable IPv4 forwarding
sysctl:
Expand All @@ -24,21 +24,21 @@
content: "br_netfilter"
dest: /etc/modules-load.d/br_netfilter.conf
mode: "u=rw,g=,o="
when: ansible_distribution in ['CentOS', 'Red Hat Enterprise Linux']
when: ansible_distribution in ['CentOS', 'RedHat', 'Red Hat Enterprise Linux']

- name: Load br_netfilter
modprobe:
name: br_netfilter
state: present
when: ansible_distribution in ['CentOS', 'Red Hat Enterprise Linux']
when: ansible_distribution in ['CentOS', 'RedHat', 'Red Hat Enterprise Linux']

- name: Set bridge-nf-call-iptables (just to be sure)
sysctl:
name: "{{ item }}"
value: "1"
state: present
reload: yes
when: ansible_distribution in ['CentOS', 'Red Hat Enterprise Linux']
when: ansible_distribution in ['CentOS', 'RedHat', 'Red Hat Enterprise Linux']
loop:
- net.bridge.bridge-nf-call-iptables
- net.bridge.bridge-nf-call-ip6tables
Expand All @@ -51,4 +51,4 @@
insertafter: EOF
path: /etc/sudoers
validate: 'visudo -cf %s'
when: ansible_distribution in ['CentOS', 'Red Hat Enterprise Linux']
when: ansible_distribution in ['CentOS', 'RedHat', 'Red Hat Enterprise Linux']

0 comments on commit bf5b3de

Please sign in to comment.