Skip to content

Commit

Permalink
redhat: use variable galera_enable_mariadb_repo (#117)
Browse files Browse the repository at this point in the history
* redhat: use variable galera_enable_mariadb_repo to disallow mariadb repo

Co-authored-by: Thorsten Liepert <[email protected]>
  • Loading branch information
bufanda and bufanda authored Mar 15, 2022
1 parent d929981 commit 8a4c21a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
gpgcheck: true
become: true
register: "repo_added"
when:
- galera_enable_mariadb_repo | bool

# fix for conflicting package from appstream
- name: redhat | disable appstream mysql/mariadb modules
Expand All @@ -17,7 +19,9 @@
warn: false
changed_when: false
become: true
when: ansible_distribution_major_version is version('8', '>=')
when:
- ansible_distribution_major_version is version('8', '>=')
- galera_enable_mariadb_repo | bool

- name: redhat | clean dnf metadata (centos8 & fedora)
shell: "dnf clean all && rm -r /var/cache/dnf" # noqa 503
Expand All @@ -27,6 +31,7 @@
when:
- repo_added.changed
- ansible_distribution_major_version is version('8', '>=')
- galera_enable_mariadb_repo | bool

- name: redhat | installing pre-reqs
yum:
Expand Down

0 comments on commit 8a4c21a

Please sign in to comment.