Install rmt: pkg.installed: - name: rmt-server include: - rmt.certs Create rmt MariaDB user: mysql.user: - name: rmt - host: localhost - password: {{ pillar['rmt']['mysql_password'] }}