mirror of
https://github.com/frappe/bench.git
synced 2025-01-25 16:08:23 +00:00
24 lines
689 B
YAML
24 lines
689 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=1BB943DB url=http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xCBCB082A1BB943DB 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
|
||
|
- python-mysqldb
|