Skip to content

Commit

Permalink
Merge pull request #693 from RiFi2k/mariadb-from-distro-repo
Browse files Browse the repository at this point in the history
Switch to distro packages for MariaDB
  • Loading branch information
swalkinshaw authored Dec 3, 2016
2 parents a6b3588 + f7873ec commit 45dcde9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions roles/mariadb/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
mariadb_binary_logging_disabled: true
mariadb_keyserver_fingerprint: "0xcbcb082a1bb943db"
mariadb_mirror: nyc2.mirrors.digitalocean.com
mariadb_version: "10.0"
mariadb_dist: trusty
mysql_root_user: root

sites_using_remote_db: "[{% for name, site in wordpress_sites.iteritems() if site.env is defined and site.env.db_host | default('localhost') != 'localhost' %}'{{ name }}',{% endfor %}]"
13 changes: 0 additions & 13 deletions roles/mariadb/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
---
- name: Add MariaDB MySQL apt-key
apt_key:
url: "http://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search={{ mariadb_keyserver_fingerprint }}"
state: present

- name: Add MariaDB MySQL deb and deb-src
apt_repository:
repo: "{{ item }}"
state: present
with_items:
- "deb http://{{ mariadb_mirror }}/mariadb/repo/{{ mariadb_version }}/ubuntu {{ mariadb_dist | default(ansible_distribution_release) }} main"
- "deb-src http://{{ mariadb_mirror }}/mariadb/repo/{{ mariadb_version }}/ubuntu {{ mariadb_dist | default(ansible_distribution_release) }} main"

- name: Install MySQL client
apt:
name: mariadb-client
Expand Down

0 comments on commit 45dcde9

Please sign in to comment.