Skip to content

Commit

Permalink
Added option to disable adding epel repo
Browse files Browse the repository at this point in the history
  • Loading branch information
cmayer89 committed Sep 7, 2023
1 parent 48e13d1 commit a8739fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ mariadb_version: "10.11"
# Defines if we should enable the MariaDB repo or use version within OS repos.
galera_enable_mariadb_repo: true

# Defines if we should enable the epel repo or use version within OS repos.
galera_enable_epel_repo: true

# Defines repository settings for apt
mariadb_debian_repo: "deb [arch=amd64,i386,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/{{ mariadb_version }}/{{ ansible_distribution|lower }} {{ ansible_distribution_release|lower }} main"
mariadb_debian_repo_keyserver: "keyserver.ubuntu.com"
Expand Down
1 change: 1 addition & 0 deletions tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
become: true
register: "epel_repo_added"
when:
- galera_enable_epel_repo | bool
- ansible_distribution_major_version is version('8', '>=')

# fix for conflicting package from appstream
Expand Down

0 comments on commit a8739fc

Please sign in to comment.