base: use "servers" option instead of "server" option for ntpd.conf

This commit is contained in:
Jérémy Dubois 2022-09-28 17:50:11 +02:00
parent daaa33a10a
commit c692105b5c
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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