ansible-chrony icon indicating copy to clipboard operation
ansible-chrony copied to clipboard

fails to properly handle multiple server definitions

Open vidkun opened this issue 6 years ago • 0 comments

When configuring this role to use multiple time servers, it results in an incorrect server definition in the config file with an array defined. This causes chronyd to fail to start. Providing the following vars:

chrony_server:
  - ntp-1.example.com prefer iburst
  - ntp-2.example.com prefer iburst

Results in the following line dropping into chrony.conf:

server [u'ntp-1.example.com prefer iburst', u'ntp-2.example.com prefer iburst']

It should instead result in:

server ntp-1.example.com prefer iburst
server ntp-2.example.com prefer iburst

vidkun avatar Sep 21 '18 15:09 vidkun