add `hostnamectl` and `timedatectl` replacements as well
Very cool project! - Maybe in future we could have replacements for hostnamectl and timedatectl as well :)
Well, never heard of them. ;) .... the thing is that I do use the docker+systemctl.py stuff on a daily basis while the hostname is set in a docker-compose / kubectl specification. And the time may be what it is in a docker box..... although I see that one may want to fiddle with it for testing, right?
thanks for your input @gdraheim , nothing important, but just keeping it out there - even if they just shoot blanks.
though most probably the ansible role should rather detect if it is running on docker and not invoke any of those two commands as they would not work in any case inside docker
Well, the ansible role can detect that by using
when: "ansible_connection == 'docker'"
and that's what I do quite often actually ... atleast for things like copying systemctl.py over /usr/bin/systemctl ;)