When you make changes through the CLI / Console, they are persisted to the standalone.xml/domain.xml, so you could version that.
Yes, but how? It is not easy to create a straight forward workflow. Either I have to tell developers to *remember* to do that, which we know how that goes. Or I have to setup a watch to commit the changes to git, which is going to create a snowflake server. I cannot think of a good way of doing that.
Ideally, I want to be able to do cache creation through Ansible, for example. Or maybe programmatically at app boot time, a bash script to be called by Ansible. I want to know if there are any options around these lines.
I was hoping to be able to do it via a rest call to the console, but it seems it doesn't exist either.
So why not use the CLI ?
That is nice actually, still I would love to see ansible integration
Just as a reference for the CLI (which we inherit from the WildFly server base) look at some recipes:
The DMR (the server internal configuration model) can also be configured over HTTP: