base: use "servers" option instead of "server" option for ntpd.conf
This commit is contained in:
parent
daaa33a10a
commit
c692105b5c
|
@ -46,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
* base: export evomaintenance and evobackup tasks into their own roles
|
||||
* nagios-nrpe: multiples IP can now be checked with check_ipsecctl_critiques.sh
|
||||
* base: use a variable for /etc/installurl content
|
||||
* base: use "servers" option instead of "server" option for ntpd.conf
|
||||
|
||||
### Fixed
|
||||
|
||||
|
|
|
@ -13,14 +13,14 @@
|
|||
file:
|
||||
path: /etc/ntpd.conf
|
||||
state: absent
|
||||
when: ntpd_conf.stdout is not regex('^server ' + ntpd_servers + '$')
|
||||
when: ntpd_conf.stdout is not regex('^servers ' + ntpd_servers + '$')
|
||||
tags:
|
||||
- ntp
|
||||
|
||||
- name: "Customize ntpd conf"
|
||||
lineinfile:
|
||||
path: /etc/ntpd.conf
|
||||
line: "server {{ ntpd_servers }}"
|
||||
line: "servers {{ ntpd_servers }}"
|
||||
create: true
|
||||
owner: root
|
||||
group: wheel
|
||||
|
|
Loading…
Reference in a new issue