Mariadb playbook

This commit is contained in:
s0dy 2018-11-01 20:31:03 +01:00
parent fc7817c0b8
commit 08607638ad

32
ops/ansible/mariadb.yml Normal file
View File

@ -0,0 +1,32 @@
---
- hosts: hifive
become: yes
become_user: root
tasks:
- name: Install mariadb client
yum:
name: mariadb
state: latest
- name: Install mariadb server
yum:
name: mariadb-server
state: latest
- name: Systemd enable mariadb
systemd:
name: mariadb
enabled: yes
masked: no
#- name: Create phpMyAdmin.conf
#template:
#src: phpMyAdmin.j2
#dest: /etc/httpd/conf.d/phpMyAdmin.conf
#force: yes
- name: Systemd start mariadb
systemd:
name: mariadb
state: started