Re: [ansible-project] Need to set chrony.conf to server instead of pool!

21 views
Skip to first unread message
Message has been deleted

Stefan Hornburg (Racke)

unread,
Aug 29, 2019, 11:16:37 AM8/29/19
to ansible...@googlegroups.com
On 8/29/19 5:04 PM, Keith Mills wrote:
> Hello All.
>
> I'm working with RHEL 8 and the ntp package is no longer supported and it is implemented by the chronyd daemon which is
> provided in the chrony package. My chrony.conf file:
>
> |
> # Use public servers from the pool.ntp.org project.
> # Please consider joining the pool (http://www.pool.ntp.org/join.html).
> pool 2.rhel.pool.ntp.org iburst

Hello Keith,

another possibility would be to use the timesync daemon provided by systemd:
https://wiki.archlinux.org/index.php/systemd-timesyncd

Regards
Racke

>
> |
>
> Is there a way to set server instead of pool? I would appreciate any help/suggestions!
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/e1ac2e37-4bc9-436b-8578-8749b25d1692%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/e1ac2e37-4bc9-436b-8578-8749b25d1692%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

signature.asc

Kai Stian Olstad

unread,
Aug 29, 2019, 12:05:31 PM8/29/19
to ansible...@googlegroups.com
On 29.08.2019 17:04, Keith Mills wrote:
> Hello All.
>
> I'm working with RHEL 8 and the ntp package is no longer supported and it
> is implemented by the chronyd daemon which is provided in the chrony
> package. My chrony.conf file:
>
> # Use public servers from the pool.ntp.org project.
> # Please consider joining the pool (http://www.pool.ntp.org/join.html).
> pool 2.rhel.pool.ntp.org iburst
>
>
> Is there a way to set server instead of pool? I would appreciate any
> help/suggestions!

Replace the whole file with template or file module, then you know that file will be correct.

If you don't want to do that you can use lineinfile module to replace line(s).


--
Kai Stian Olstad
Message has been deleted
Message has been deleted

Kai Stian Olstad

unread,
Aug 29, 2019, 4:52:09 PM8/29/19
to ansible...@googlegroups.com
On 29.08.2019 21:51, Keith Mills wrote:
> Thanks for the suggestions guys! What would the syntax be for me to set
> to
> server. This will be set in the chrony.conf file.

That is out of the scope for this list, this is about Ansible.
What you are asking about is how to configure Chrony.

You should search up a mailing list, a support forum for Chrony or read
the man pages for Chrony.


--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages