mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-04-23 19:32:15 +00:00
Mariadb playbook
This commit is contained in:
parent
fc7817c0b8
commit
08607638ad
32
ops/ansible/mariadb.yml
Normal file
32
ops/ansible/mariadb.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user