vm-ansible/roles/mariadb/tasks/main.yaml

20 lines
335 B
YAML
Raw Normal View History

2022-01-08 21:53:39 +01:00
---
- name: "Install MariaDB via apt"
apt:
update_cache: yes
state: present
name:
2022-02-05 21:18:47 +01:00
- mariadb-server
2022-01-08 21:53:39 +01:00
- name: Enable and restart MariaDB daemon
service:
name: mariadb
state: restarted
enabled: yes
2022-02-05 20:00:55 +01:00
- name: Allow mysql port via ufw
community.general.ufw:
rule: allow
2022-02-05 21:49:58 +01:00
port: "3306"
2022-02-05 20:00:55 +01:00
proto: tcp