curationexperts-deprecated / ansible-hydra

Ansible playbook & roles to build a production-style Hydra Head.
http://www.curationexperts.com
Other
13 stars 13 forks source link

set_timezone role has no effect on Ubuntu 16 #254

Closed acozine closed 6 years ago

acozine commented 7 years ago

Ubuntu 16.04 uses timedatectl instead of dpkg-reconfigure to set the time zone. See https://github.com/curationexperts/laevigata/issues/731

mark-dce commented 7 years ago

Possibly fixed by #256 - by letting Ansible determine the appropriate strategy to set the timezone for the specific OS

mark-dce commented 7 years ago

NOTE: I pulled PR #256 which is superseded by PR #259

I've tested the new timezone role on a Vagrant based Ubuntu 16.04 system and the timezone does get set correctly by the new role:

vagrant@camper:~$ cat /etc/timezone 
Europe/London
vagrant@camper:~$ date
Mon Aug 28 17:27:36 BST 2017
vagrant@camper:~$ exit
logout
Connection to 127.0.0.1 closed.
MARKs-MacBook-Pro-2:camper mark$ date
Mon Aug 28 11:28:17 CDT 2017
MARKs-MacBook-Pro-2:camper mark$ 
acozine commented 6 years ago

By default Ubuntu 16 uses timesyncd instead of nptd - see https://www.digitalocean.com/community/tutorials/how-to-set-up-time-synchronization-on-ubuntu-16-04.

bess commented 6 years ago

Fixed in ansible-samvera