2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-24 21:19:00 +00:00
bench/playbooks/roles/mariadb/tasks/debian.yml
Ameya Shenoy 1262f25704 multiple fixes:
- in travis tests added check for the node_modules folder not found, since it was moved to frappe from v11 onwards
- added --without-erpnext flag to install only frappe
- identified but not yet fixed localctl failure on scaleway cloud (instant fix: apt install keyboard-configuration kbd console-data)
- fixed owner and permissions for bench.log in logs
- fixed mariadb set root password issue
- added libselinux-python to centos for localctl issues
2018-07-10 12:12:14 +05:30

32 lines
1.1 KiB
YAML

---
- name: Add apt key for mariadb for Debian <= 8
apt_key: keyserver=hkp://keyserver.ubuntu.com:80 id=0xcbcb082a1bb943db state=present
when: ansible_distribution_major_version | version_compare('8', 'le')
- name: Add apt key for mariadb for Debian > 8
apt_key: keyserver=hkp://keyserver.ubuntu.com:80 id=0xF1656F24C74CD1D8 state=present
when: ansible_distribution_major_version | version_compare('8', 'gt')
- name: Add apt repository
apt_repository:
repo: 'deb [arch=amd64,i386] http://ams2.mirrors.digitalocean.com/mariadb/repo/{{ mariadb_version }}/debian {{ ansible_distribution_release }} main'
state: present
- name: Add apt repository
apt_repository:
repo: 'deb-src [arch=amd64,i386] http://ams2.mirrors.digitalocean.com/mariadb/repo/{{ mariadb_version }}/debian {{ ansible_distribution_release }} main'
state: present
- name: Unattended package installation
shell: export DEBIAN_FRONTEND=noninteractive
- name: apt-get install
apt: pkg={{ item }} update_cache=yes state=present
with_items:
- mariadb-server
- mariadb-client
- mariadb-common
- libmariadbclient18
- python-mysqldb
- python3-mysqldb
...