Ansible role to install MariaDB on Ubuntu 16.04
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
611 B

9 years ago
---
- name: Add MariaDB Repository Key
apt_key:
state : 'present'
keyserver: 'keyserver.ubuntu.com'
9 years ago
id : '0xF1656F24C74CD1D8'
9 years ago
- name: Setup MariaDB Repo
apt_repository:
repo: 'deb [arch=amd64,i386] http://ftp.hosteurope.de/mirror/mariadb.org/repo/10.1/ubuntu xenial main'
- name: Install MariaDB
9 years ago
apt: pkg={{ item }} state=present update_cache=yes
9 years ago
with_items:
- mariadb-server
- mariadb-client
- name: Install MySQLdb Python package for secure installations.
apt: pkg=python-mysqldb state=present
when: mysql_secure_installation and mysql_root_password is defined