--- - 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