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
|
* base: export evomaintenance and evobackup tasks into their own roles
|
||||||
* nagios-nrpe: multiples IP can now be checked with check_ipsecctl_critiques.sh
|
* nagios-nrpe: multiples IP can now be checked with check_ipsecctl_critiques.sh
|
||||||
* base: use a variable for /etc/installurl content
|
* base: use a variable for /etc/installurl content
|
||||||
|
* base: use "servers" option instead of "server" option for ntpd.conf
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -13,14 +13,14 @@
|
||||||
file:
|
file:
|
||||||
path: /etc/ntpd.conf
|
path: /etc/ntpd.conf
|
||||||
state: absent
|
state: absent
|
||||||
when: ntpd_conf.stdout is not regex('^server ' + ntpd_servers + '$')
|
when: ntpd_conf.stdout is not regex('^servers ' + ntpd_servers + '$')
|
||||||
tags:
|
tags:
|
||||||
- ntp
|
- ntp
|
||||||
|
|
||||||
- name: "Customize ntpd conf"
|
- name: "Customize ntpd conf"
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/ntpd.conf
|
path: /etc/ntpd.conf
|
||||||
line: "server {{ ntpd_servers }}"
|
line: "servers {{ ntpd_servers }}"
|
||||||
create: true
|
create: true
|
||||||
owner: root
|
owner: root
|
||||||
group: wheel
|
group: wheel
|
||||||
|
|
Loading…
Reference in a new issue