docker-systemctl-replacement icon indicating copy to clipboard operation
docker-systemctl-replacement copied to clipboard

add `hostnamectl` and `timedatectl` replacements as well

Open lifeofguenter opened this issue 8 years ago • 5 comments

Very cool project! - Maybe in future we could have replacements for hostnamectl and timedatectl as well :)

lifeofguenter avatar Nov 29 '17 08:11 lifeofguenter

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?

gdraheim avatar Nov 29 '17 09:11 gdraheim

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

lifeofguenter avatar Nov 29 '17 20:11 lifeofguenter

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 ;)

gdraheim avatar Nov 30 '17 01:11 gdraheim