Add ansible files

This commit is contained in:
s0dy
2018-10-31 15:59:52 +01:00
parent a2459d3648
commit 5e9162060b
13 changed files with 245 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
---
- hosts: hifive
become: yes
become_user: root
tasks:
- name: install mariadb
apt:
pkg:
- mariadb-server
- mariadb-client
- mariadb-common
- python-mysqldb
state: present
- name: Create a new user bob
mysql_user:
name: bob
password: bob
priv: '*.*:ALL'
state: present
- name: Create a new database bobdata
mysql_db:
name: bobdata
state: present