Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions roles/galera/tasks/arbiter_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
state: present
ignoreerrors: yes

# Add MariaDB repo and key
- name: Add MariaDB.org repository
# todo add this to a generic file and apply to aribtrator and cluster node
- name: Add MariaDB.org repository Rocky 8
template:
src: "mariadb.repo.j2"
src: "mariadb.repo.rocky8.j2"
dest: "/etc/yum.repos.d/mariadb.repo"
when: ansible_os_family == 'RedHat'
when: ansible_distribution_major_version == '8'

- name: Add MariaDB.org repository Rocky 9
template:
src: "mariadb.repo.rocky9.j2"
dest: "/etc/yum.repos.d/mariadb.repo"
when: ansible_distribution_major_version == '9'

- name: Install Galera, rsync
ansible.builtin.package:
Expand Down