add ntpd defaults

This commit is contained in:
Alin Trăistaru 2020-04-05 09:42:52 +03:00
parent 5cca71e8da
commit 604e581a97
6 changed files with 9 additions and 6 deletions

View file

@ -33,6 +33,9 @@ matrix_systemd_path: "/etc/systemd/system"
matrix_cron_path: "/etc/cron.d"
matrix_local_bin_path: "/usr/local/bin"
matrix_ntpd_package: "ntp"
matrix_ntpd_service: "{{ 'ntpd' if ansible_os_family == 'RedHat' or ansible_distribution == 'Archlinux' else 'ntp' }}"
matrix_homeserver_url: "https://{{ matrix_server_fqn_matrix }}"
matrix_identity_server_url: ~

View file

@ -18,8 +18,8 @@
state: started
enabled: yes
- name: Ensure ntpd is started and autoruns
- name: "Ensure {{ matrix_ntpd_service }} is started and autoruns"
service:
name: "{{ 'ntpd' if ansible_os_family == 'RedHat' or ansible_distribution == 'Archlinux' else 'ntp' }}"
name: "{{ matrix_ntpd_service }}"
state: started
enabled: yes

View file

@ -4,7 +4,7 @@
pacman:
name:
- python-docker
- ntp
- "{{ matrix_ntpd_package }}"
# TODO This needs to be verified. Which version do we need?
- fuse3
- python-dnspython

View file

@ -21,7 +21,7 @@
yum:
name:
- docker-python
- ntp
- "{{ matrix_ntpd_package }}"
- fuse
state: latest
update_cache: yes

View file

@ -28,7 +28,7 @@
apt:
name:
- "python{{'3' if ansible_python.version.major == 3 else ''}}-docker"
- ntp
- "{{ matrix_ntpd_package }}"
- fuse
state: latest
update_cache: yes

View file

@ -28,7 +28,7 @@
apt:
name:
- python-docker
- ntp
- "{{ matrix_ntpd_package }}"
- fuse
state: latest
update_cache: yes