Services : Mariadb role

The purpose of this role is to install, configure and enable the mariadb service. This role is part of the STARTX services ansible collection.

Requirements

Role Variables

Key Default Description
ss_mariadb_action create The action to perform
ss_mariadb_release latest mariadb version to install
ss_mariadb_config_file /etc/my.cnf.d/mariadb-server.cnf mariadb configuration file

Dependencies

Depend only on ansible.builtin

Example playbooks

Install mariadb playbook

Install mariadb service default version.

- name: Install mariadb service
  hosts: localhost
  roles:
    - role: startxfr.services.mariadb

Install mariadb version 10.5.13” playbook

Install mariadb service 10.5.13” version.

- name: Install mariadb service in version 10.5.13"
  hosts: localhost
  roles:
    - role: startxfr.services.mariadb
      ss_mariadb_release: "10.5.13"

Uninstall mariadb playbook

Uninstall mariadb service.

- name: Uninstall mariadb service
  hosts: localhost
  roles:
    - role: startxfr.services.mariadb
      ss_mariadb_action: "delete"