---
- name: restart mariadb
service:
name: mariadb
state: restarted
when:
- mariadb_can_restart
- not ansible_check_mode