Skip to content

Commit 4c52609

Browse files
authored
Merge pull request #40 from Poorna-Gottimukkula1/update-ansible
CentOS Stream 10: Install required packages for k8s setup and e2e run
2 parents 5bd44bf + 346e9f6 commit 4c52609

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

kubetest2-tf/data/k8s-ansible/install-k8s.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
- workers
55
roles:
66
- role: update-pkgs
7-
when: update_os_packages | bool
87

98
- name: Install Runtime and Kubernetes
109
hosts:

kubetest2-tf/data/k8s-ansible/roles/update-node-os/tasks/main.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@
66
package:
77
name: '*'
88
state: latest
9-
when: ansible_pkg_mgr in ['yum', 'dnf']
9+
when:
10+
- ansible_pkg_mgr in ['yum', 'dnf']
11+
- update_os_packages | bool
12+
13+
- name: Install kernel-modules-extra package for br_netfilter module
14+
package:
15+
name: kernel-modules-extra
16+
state: present
17+
when:
18+
- ansible_pkg_mgr in ['yum', 'dnf']
19+
- ansible_distribution_major_version | int >= 10
1020

1121
- name: Check if reboot required
1222
shell: needs-restarting -r

kubetest2-tf/hack/ansible_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ set -o pipefail
2121
install_ansible() {
2222
echo "Installing ansible..."
2323
##Install ansible required to bring up k8s cluster on infra
24-
apt-get update && apt-get install -y ansible
24+
apt-get update && pip install --break-system-packages ansible
2525
}
2626

2727
# Call if ansible not found

0 commit comments

Comments
 (0)