new file mode 100644
@@ -0,0 +1,14 @@
+---
+- name: Enable the CodeReady repo
+ become: yes
+ ansible.builtin.command: /usr/bin/dnf config-manager --enable codeready-builder-for-rhel-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}-rpms
+ when:
+ - ansible_distribution == 'RedHat'
+ - not devconfig_custom_yum_repofile
+
+- name: Enable the CodeReady repo
+ become: yes
+ ansible.builtin.command: /usr/bin/dnf config-manager --enable crb
+ when:
+ - ansible_distribution == 'CentOS'
+ - not devconfig_custom_yum_repofile
@@ -1,17 +1,7 @@
---
- name: Enable the CodeReady repo
- become: yes
- command: /usr/bin/dnf config-manager --enable codeready-builder-for-rhel-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}-rpms
- when:
- - ansible_distribution == 'RedHat'
- - not devconfig_custom_yum_repofile
-
-- name: Enable the CodeReady repo
- become: yes
- command: /usr/bin/dnf config-manager --enable crb
- when:
- - ansible_distribution == 'CentOS'
- - not devconfig_custom_yum_repofile
+ ansible.builtin.include_role:
+ name: codereadyrepo
- name: Install epel-release if we're not on Fedora
become: yes
@@ -1,17 +1,7 @@
---
- name: Enable the CodeReady repo
- become: yes
- command: /usr/bin/dnf config-manager --enable codeready-builder-for-rhel-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}-rpms
- when:
- - ansible_distribution == 'RedHat'
- - not devconfig_custom_yum_repofile
-
-- name: Enable the CodeReady repo
- become: yes
- command: /usr/bin/dnf config-manager --enable crb
- when:
- - ansible_distribution == 'CentOS'
- - not devconfig_custom_yum_repofile
+ ansible.builtin.include_role:
+ name: codereadyrepo
- name: Install build dependencies for pynfs
become: yes
@@ -1,17 +1,7 @@
---
- name: Enable the CodeReady repo
- become: yes
- command: /usr/bin/dnf config-manager --enable codeready-builder-for-rhel-{{ ansible_distribution_major_version }}-{{ ansible_architecture }}-rpms
- when:
- - ansible_distribution == 'RedHat'
- - not devconfig_custom_yum_repofile
-
-- name: Enable the CodeReady repo
- become: yes
- command: /usr/bin/dnf config-manager --enable crb
- when:
- - ansible_distribution == 'CentOS'
- - not devconfig_custom_yum_repofile
+ ansible.builtin.include_role:
+ name: codereadyrepo
- name: Install epel-release if we're not on Fedora
become: yes