Skip to content

Commit 7677c98

Browse files
committed
change rocklinux python version in CI
1 parent 981c0ab commit 7677c98

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

molecule/kubernetes/prepare.yml

+17
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,23 @@
4040
when:
4141
- _swapon.stdout
4242
tasks:
43+
- name: Update dnf
44+
ansible.builtin.command: dnf update -y
45+
when: ansible_facts['distribution'] == "Rocky" and ansible_facts['distribution_major_version'] == "8"
46+
47+
- name: remove python36
48+
ansible.builtin.package:
49+
name:
50+
- python36
51+
state: absent
52+
when: ansible_facts['distribution'] == "Rocky" and ansible_facts['distribution_major_version'] == "8"
53+
54+
- name: install python39
55+
ansible.builtin.package:
56+
name:
57+
- python39
58+
when: ansible_facts['distribution'] == "Rocky" and ansible_facts['distribution_major_version'] == "8"
59+
4360
- name: Install common packages
4461
ansible.builtin.package:
4562
name:

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ansible-core < 2.17.0
1+
ansible-core
22
docker-image-py
33
jmespath
44
molecule

0 commit comments

Comments
 (0)