-
Notifications
You must be signed in to change notification settings - Fork 0
/
mariadb.yml
36 lines (30 loc) · 843 Bytes
/
mariadb.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
- name: Play for mariadb.hayaworld.home
hosts: mariadb
remote_user: hayato
gather_facts: true
become: true
vars_files:
- inventories/host_vars/mariadb.yml
- inventories/host_vars/networks.yml
handlers:
- name: Restart handler tasks
ansible.builtin.import_tasks:
file: handlers/main.yml
tasks:
- name: Common Settings
ansible.builtin.import_tasks:
file: tasks/all/main.yml
- name: Mount MariaDB DB drive
ansible.builtin.import_tasks:
file: tasks/mariadb/mount_dbdir.yml
tags:
- mysql
- name: Install and Configure MySQL
ansible.builtin.import_tasks:
file: tasks/mariadb/install_mariadb.yml
tags:
- mysql
- name: Make Started Services
ansible.builtin.import_tasks:
file: tasks/service_start.yml