This role have to add the official MariaDB MaxScale repository as maxscale isn't in the Debian repositories. Moreover as maxscale need two mysql users to works, the role can also create these users if requested and ansible has access to a master server.
23 lines
680 B
YAML
23 lines
680 B
YAML
- name: "Install MariaDB keys"
|
|
apt_key:
|
|
keyserver: keyserver.ubuntu.com
|
|
id: "{{ item }}"
|
|
loop:
|
|
- "0x13cfde6dd9ee9784f41af0f670e4618a8167ee24"
|
|
- "0x4c470fffefc4d3dc59778655ce1a3dd5e3c94f49"
|
|
- "0x199369e5404bd5fc7d2fe43bcbcb082a1bb943db"
|
|
- "0x177f4010fe56ca3336300305f1656f24c74cd1d8"
|
|
- "0x7b963f525ad3ae6259058d30135659e928c12247"
|
|
|
|
- name: "Add MariaDB MaxScale repository"
|
|
apt_repository:
|
|
repo: "deb https://downloads.mariadb.com/MaxScale/{{ maxscale_version }}/debian {{ ansible_distribution_release }} main"
|
|
state: present
|
|
filename: mariadb-maxscale
|
|
|
|
- name: "Install MariaDB MaxScale"
|
|
apt:
|
|
name: maxscale
|
|
state: present
|
|
|