mirror of
https://github.com/frappe/bench.git
synced 2024-11-14 17:24:04 +00:00
de94469581
- added ubuntu 18 in the list of supported OS for the easy install script - ensured the install script for mariadb which works on ubuntu xenial also works on ubuntu bionic - sidenote: prevented pip from installing requests, since a system package is already installed in centos 7 Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
28 lines
868 B
YAML
28 lines
868 B
YAML
---
|
|
- name: Add repo file
|
|
template: src=mariadb_ubuntu.list.j2 dest=/etc/apt/sources.list.d/mariadb.list owner=root group=root mode=0644
|
|
register: mariadb_list
|
|
|
|
- name: Add repo key
|
|
apt_key: id=C74CD1D8 url=http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xF1656F24C74CD1D8 state=present
|
|
register: mariadb_key
|
|
|
|
- name: Update apt cache
|
|
apt: update_cache=yes
|
|
when: mariadb_list.changed == True or mariadb_key.changed == True
|
|
|
|
- name: Unattended package installation
|
|
shell: export DEBIAN_FRONTEND=noninteractive
|
|
changed_when: false
|
|
|
|
- name: Install MariaDB
|
|
apt: pkg={{ item }} state=present
|
|
with_items:
|
|
- mariadb-server
|
|
- mariadb-client
|
|
- libmariadbclient18
|
|
|
|
- name: Install MySQLdb Python package for secure installations.
|
|
apt: pkg=python-mysqldb state=present
|
|
when: mysql_secure_installation and mysql_root_password is defined
|