- Restart Dovecot.
#+END_SRC
-** Install NTP
+** Install Chrony
-Core uses NTP to provide a time synchronization service to the campus.
+Core uses Chrony to provide a time synchronization service to the campus.
The default daemon's default configuration is fine.
#+CAPTION: [[file:roles_t/core/tasks/main.yml][=roles_t/core/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/core/tasks/main.yml :noweb no-export
-- name: Install NTP.
+- name: Install Chrony.
become: yes
- apt: pkg=ntp
+ apt: pkg=chrony
+
+- name: Configure NTP service.
+ become: yes
+ copy:
+ content: |
+ allow {{ private_net_cidr }}
+ allow {{ public_wg_net_cidr }}
+ allow {{ campus_wg_net_cidr }}
+ dest: /etc/chrony/conf.d/institute.conf
+ notify: Restart Chrony.
+#+END_SRC
+
+#+CAPTION: [[file:roles_t/core/handlers/main.yml][=roles_t/core/handlers/main.yml=]]
+#+BEGIN_SRC conf :tangle roles_t/core/handlers/main.yml :noweb no-export
+
+- name: Restart Chrony.
+ systemd:
+ service: chrony
+ state: restarted
#+END_SRC
** Configure Postfix on Core
- Restart Postfix.
- Restart Dovecot.
-- name: Install NTP.
+- name: Install Chrony.
become: yes
- apt: pkg=ntp
+ apt: pkg=chrony
+
+- name: Configure NTP service.
+ become: yes
+ copy:
+ content: |
+ allow {{ private_net_cidr }}
+ allow {{ public_wg_net_cidr }}
+ allow {{ campus_wg_net_cidr }}
+ dest: /etc/chrony/conf.d/institute.conf
+ notify: Restart Chrony.
- name: Install Postfix.
become: yes