Skip to content

Commit ac6a2de

Browse files
committed
test: enable crb for Rocky Linux 9 in prepare stage
1 parent 6e75b57 commit ac6a2de

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

molecule/default/prepare.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
---
22
- name: Prepare
33
hosts: all
4-
tasks: []
4+
tasks:
5+
- name: Install DNF plugins core
6+
ansible.builtin.dnf:
7+
name: dnf-plugins-core
8+
state: present
9+
when: ansible_distribution == "Rocky" and ansible_distribution_major_version|int >= 9
10+
11+
- name: Enable CRB repository
12+
ansible.builtin.command: dnf config-manager --enable crb
13+
when: ansible_distribution == "Rocky" and ansible_distribution_major_version|int >= 9

0 commit comments

Comments
 (0)