Install mariadb: pkg.installed: - name: mariadb Start mariadb: service.running: - name: mariadb - enable: True Check Root password: mysql.root_password: - name: root - password: {{ pillar['mysql']['root_password'] }}