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