ansible-role-mysql/tasks/disable-mariadb-service.yml

10 lines
228 B
YAML

---
- name: disable-mariadb-service | Stop and disable the mysql server if we do not want it running
ansible.builtin.service:
name: mysql
state: stopped
enabled: false
when: not mysql_enabled
tags:
- mysql