Skip to content

Commit 4f841a7

Browse files
authored
Merge pull request spantaleev#1192 from sakkiii/patch-1
migrate from ntp to systemd-timesyncd for ubuntu & Archlinux
2 parents 62ce06e + 2453876 commit 4f841a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

roles/matrix-base/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ matrix_host_command_openssl: "/usr/bin/env openssl"
8383
matrix_host_command_systemctl: "/usr/bin/env systemctl"
8484
matrix_host_command_sh: "/usr/bin/env sh"
8585

86-
matrix_ntpd_package: "{{ 'systemd-timesyncd' if ansible_distribution == 'CentOS' and ansible_distribution_major_version > '7' else 'ntp' }}"
87-
matrix_ntpd_service: "{{ 'systemd-timesyncd' if ansible_distribution == 'CentOS' and ansible_distribution_major_version > '7' else ('ntpd' if ansible_os_family == 'RedHat' or ansible_distribution == 'Archlinux' else 'ntp') }}"
86+
matrix_ntpd_package: "{{ 'systemd-timesyncd' if (ansible_distribution == 'CentOS' and ansible_distribution_major_version > '7') or (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version > '16') else 'ntp' }}"
87+
matrix_ntpd_service: "{{ 'systemd-timesyncd' if (ansible_distribution == 'CentOS' and ansible_distribution_major_version > '7') or (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version > '16') or ansible_distribution == 'Archlinux' else ('ntpd' if ansible_os_family == 'RedHat' else 'ntp') }}"
8888

8989
matrix_homeserver_url: "https://{{ matrix_server_fqn_matrix }}"
9090

roles/matrix-base/tasks/server_base/setup_archlinux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
pacman:
55
name:
66
- python-docker
7-
- "{{ matrix_ntpd_package }}"
7+
- systemd-timesyncd
88
# TODO This needs to be verified. Which version do we need?
99
- fuse3
1010
- python-dnspython

0 commit comments

Comments
 (0)