ansible-roles/mysql/tasks/disable-mysql-service.yml

8 lines
169 B
YAML

---
- name: Stop and disable the mysql server if we do not want it running
service: name=mysql state=stopped enabled=no
when: not mysql_enabled
tags:
- mysql