Can I automate setting up SAML authentication?

I work for a program that is looking to implement the latest version of SonarQube. We do everything with automation whenever possible. I’ve written an Ansible playbook that spins up a server in AWS, installs SonarQube, create an RDS database for it, and adds SSL. I have everything working with automation except SAML.

I setup SAML manually, then poked around in the database and see that the SAML setup appears to just be a few entries in the properties table. But I’m sure there is some sort of metadata there for it and/or a procedure it goes through to generate those rows in the database.

My question is, can SAML be setup in some automated fashion? Either my inserting things directly into the database, or some way in the CLI, or possibly through the API?

Thanks.