I am building a server config in Ansible to help provision a server in a repeatable manner. I have been able to find most things I need in the config files. One thing I want to do is update all modules. Is there a way to do this from the command line. Virtualmin has a command line tool. I can’t find one for Webmin.
All the update process is done by perl script and nothing in the virtualmin api refer to module update… And there is no webmin “public” api (like a cmd line tool or url).
There is a webmin CLI that I checked in a couple of months back. It doesn’t do module upgrades or installs yet, but it’s on the todo list. It currently sets config values, and a few other minor things.
Edit: I’m not sure if it’s in a stable version of Webmin yet, but it’ll definitely be in the next one, if it’s not already. I dunno when I’ll have time to tackle module commands, though. Been really busy lately keeping food on the table and rent paid.
I didn’t check it yet, but in the case you missed it, please make sure that there are some ways to check each value in order to be able to create idempotency on automation software.
I am asking this because virtualmin doesn’t have this on all sub-commands (or, for some reasons/bugs some of them are not working as expected). I can give you an example, maybe you can take a look on it to fix it…