mirror of
https://github.com/schnidrig/openhab-ansible
synced 2026-01-12 00:48:46 +01:00
openhab1
This commit is contained in:
29
roles/openhab/tasks/mysql.yml
Normal file
29
roles/openhab/tasks/mysql.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
|
||||
- name: install mysql packages
|
||||
apt:
|
||||
pkg: "{{item}}"
|
||||
update_cache: "{{apt_config.update_cache}}"
|
||||
cache_valid_time: "{{apt_config.cache_valid_time}}"
|
||||
with_items:
|
||||
- mysql-server
|
||||
- python-mysqldb
|
||||
tags:
|
||||
- mysql
|
||||
|
||||
- name: Create openhab database
|
||||
mysql_db:
|
||||
name: openhab
|
||||
state: present
|
||||
tags:
|
||||
- mysql
|
||||
|
||||
- mysql_user:
|
||||
name: openhab
|
||||
password: openhab
|
||||
priv: '*.*:ALL'
|
||||
state: present
|
||||
tags:
|
||||
- mysql
|
||||
|
||||
|
||||
Reference in New Issue
Block a user