2016-03-16 09:54:19 +00:00
|
|
|
---
|
2016-03-17 07:29:44 +00:00
|
|
|
- name: Add apt key
|
|
|
|
apt_key: keyserver=hkp://keyserver.ubuntu.com:80 id=0xcbcb082a1bb943db state=present
|
2016-03-17 09:50:21 +00:00
|
|
|
become: yes
|
|
|
|
become_user: root
|
2016-03-17 07:29:44 +00:00
|
|
|
|
2016-03-16 09:54:19 +00:00
|
|
|
- name: Add apt repositry
|
|
|
|
apt_repository: repo='deb [arch=amd64,i386] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu {{ ansible_distribution_release }} main' state=present
|
2016-03-17 09:50:21 +00:00
|
|
|
become: yes
|
|
|
|
become_user: root
|
2016-03-16 09:54:19 +00:00
|
|
|
|
|
|
|
- name: apt-get install
|
2016-03-17 10:47:48 +00:00
|
|
|
apt: pkg={{ item }} update_cache=yes state=present
|
|
|
|
with_items:
|
|
|
|
- mariadb-server
|
|
|
|
- mariadb-client
|
|
|
|
- mariadb-common
|
|
|
|
- libmariadbclient-dev
|
2016-03-17 09:50:21 +00:00
|
|
|
become: yes
|
|
|
|
become_user: root
|
2016-03-16 09:54:19 +00:00
|
|
|
|