Skip to content

Commit

Permalink
Fix provision for CentOS Stream distributions
Browse files Browse the repository at this point in the history
  • Loading branch information
Korulag committed Jun 5, 2024
1 parent 6841c31 commit bada7ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/roles/install_uninstall/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- name: Enable module
shell: dnf module enable -y "{{ module_name }}:{{ module_stream }}:{{ module_version }}"
when: ansible_distribution_file_variety == 'RedHat' and module_name is defined and module_stream is defined and module_version is defined
when: ansible_distribution_file_variety in ('RedHat', 'CentOS') and module_name is defined and module_stream is defined and module_version is defined
tags:
- install_package

Expand All @@ -12,7 +12,7 @@
state: present
allow_downgrade: true
lock_timeout: 300
when: ansible_distribution_file_variety in ('RedHat', 'OracleLinux')
when: ansible_distribution_file_variety in ('RedHat', 'OracleLinux', 'CentOS')
tags:
- install_package

Expand All @@ -32,7 +32,7 @@
retries: 30
delay: 10
until: result.rc == 0
when: ansible_distribution_file_variety in ('RedHat', 'OracleLinux')
when: ansible_distribution_file_variety in ('RedHat', 'OracleLinux', 'CentOS')
tags:
- uninstall_package

Expand Down

0 comments on commit bada7ec

Please sign in to comment.