Merge pull request #437 from alindt/ntpd_defaults

add ntpd defaults
This commit is contained in:
Slavi Pantaleev 2020-04-05 10:32:37 +03:00 committed by GitHub
commit 929f220c58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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_cron_path: "/etc/cron.d"
matrix_local_bin_path: "/usr/local/bin" 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_homeserver_url: "https://{{ matrix_server_fqn_matrix }}"
matrix_identity_server_url: ~ matrix_identity_server_url: ~

View file

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

View file

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

View file

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

View file

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

View file

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