These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Update webmin modules from command line. on the new forum.
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.
Chris
Same for me.
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).
Thanks
+1 for me - would need this functionality for some automatisation across our Servers ...
Andreas Schnederle-Wagner
+1 :)
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.
--
Check out the forum guidelines!
Hi @Joe, I've asked you about this webmin CLI on this post too: https://www.virtualmin.com/node/55131
Can you please guide me where I can find this so I can try it? Is it already on github? Please give me a link.
Thank you!
Hi @Joe, I found it on https://github.com/webmin/webmin/tree/master/bin
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..
Thank you for your work!
+1 I can't wait to have a webmin CLI ...for the basic webmin setup stuff at least. Especially installing/configuring modules.