--- - name: restart mariadb service: name: mysql state: restarted when: mariadb_autorestart|bool