- Moves some of the tasks from config.yml that are actually used to run
the chronyd into a new dedicated run.yml tasks file.
- Adds a sync.yml with tasks for actually syncing using chronyc.
- Adds some install tasks to install.yml to disable ntpd in case it is
running as it's not compatible when chronyd is also running.
- Refactors the distro variable loading into a common tasks vars.yml
that can be reused by the other tasks files
- Adds a symbolic link 'chrony' to the top level directory of the
project, since the role is named 'chrony', and ansible searches for a
directory with that name.
Signed-off-by: James Slagle <jslagle@redhat.com>
Change-Id: I673ce4fc17dd98aa251fdffce73bf9a096aad6fb
NetworkManager has a dispatcher which may cause the sources to be marked
as disabled. If you don't have any interfaces actually managed with
NetworkManager, we need to have a way to ensure that the sources get
marked enabled on boot. This change adds a chrony-online service that
waits for the network-online.target in order to be able to make chronyd
source online.
Change-Id: Ib1d91852d281c63b2458fc3c0199a5d5fed17056
ansible_distribution and ansible_os_family rely on the facts being
injected as vars. This change switches our vars file lookup to use
ansible_facts instead.
Change-Id: Ia6636bf0223f7e51b6b50950a5c8c1413b4a54b0
The service will be enabled if and only if its state is set to "running"
or "started".
This change addresses comment in this change:
https://review.opendev.org/#/c/669365/1/tasks/config.yml@14
Change-Id: Ic25772c04047bcd3aaa3e8abc5b947feb66bcbbb
With older tripleo versions, we did disable the service since we were
using ntpd.
If we upgrade from a version using ntpd, the chronyd service won't be
active upon reboot.
Change-Id: Ic59374afdf5ace02ba8243f5163d0950e527ec52
Closes-Bug: #1835368
We've seen handlers being inconsitently being ignored for some
deployments when we force a handler flush mid-playbook. We'll need to
ensure the config is properly loaded if we want to follow up with
subsequent chronyc application so it's best to always invoke the restart
when the configuration actually changes.
Change-Id: I5292f1b1bd65cef340e1e9742463620effc30d26