Skip to content

Commit

Permalink
squash: A minor simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
psss committed Mar 22, 2024
1 parent 96a9e4a commit 63b1c04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmt/steps/prepare/feature/epel-disable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
hosts: all
tasks:
- name: Disable EPEL repos on RHEL 7 or CentOS 7
when: (ansible_distribution == "RedHat" or ansible_distribution == "CentOS") and ansible_distribution_major_version | int == 7
when: ansible_distribution in ["RedHat", "CentOS"] and ansible_distribution_major_version | int == 7
block:
- name: Install package 'yum-utils'
ansible.builtin.yum:
Expand All @@ -22,7 +22,7 @@
changed_when: output.rc != 0

- name: Disable EPEL and EPEL-Next repos on RHEL 8+ or CentOS Stream 8+
when: (ansible_distribution == "RedHat" or ansible_distribution == "CentOS") and ansible_distribution_major_version | int >= 8
when: ansible_distribution in ["RedHat", "CentOS"] and ansible_distribution_major_version | int >= 8
block:
- name: Install 'dnf config-manager'
ansible.builtin.command: dnf -y install 'dnf-command(config-manager)'
Expand Down

0 comments on commit 63b1c04

Please sign in to comment.