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.
27 lines
794 B
27 lines
794 B
---
|
|
- name: Add MariaDB Repository Key
|
|
apt_key:
|
|
state : 'present'
|
|
keyserver: 'keyserver.ubuntu.com'
|
|
id : '0xcbcb082a1bb943db'
|
|
|
|
- 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
|
|
apt: name=mariadb-server state=latest update_cache=yes
|
|
|
|
- name: Update apt cache
|
|
apt: update_cache=yes
|
|
when: mariadb_list.changed == True or mariadb_key.changed == True
|
|
|
|
- name: Install MariaDB
|
|
apt: pkg={{ item }} state=present
|
|
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
|
|
|