diff --git a/void_base.yaml b/void_base.yaml index d601286..ab8fc6f 100644 --- a/void_base.yaml +++ b/void_base.yaml @@ -102,6 +102,13 @@ when: libc_locales_file.stat.exists notify: glibc-locales-changed + - name: Set up chrony for NTP management + community.general.xbps: + name: + - chrony + state: present + notify: installed-chrony + handlers: - name: Regenerate locales ansible.builtin.command: @@ -110,3 +117,12 @@ - --force - libc-locales listen: glibc-locales-changed + + - name: Activate chronyd service + ansible.builtin.file: + force: "yes" + src: "/etc/sv/{{ item }}" + dest: "/etc/runit/runsvdir/default/{{ item }}" + state: link + with_items: [chronyd] + listen: installed-chrony