fix: deploy sysconfig file to ensure chrony user is used
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2022-09-19 16:53:21 +02:00
parent 2cf26665e0
commit 013988d5bb
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 17 additions and 2 deletions

View File

@ -9,6 +9,17 @@
template: template:
src: etc/chrony.conf.j2 src: etc/chrony.conf.j2
dest: /etc/chrony.conf dest: /etc/chrony.conf
owner: root
group: root
mode: 0644
notify: __chrony_restart
- name: Deploy sysconfig file
template:
src: etc/sysconfig/chronyd.j2
dest: /etc/sysconfig/chronyd
owner: root
group: root
mode: 0644 mode: 0644
notify: __chrony_restart notify: __chrony_restart

View File

@ -1,5 +1,5 @@
# {{ ansible_managed }} #jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
{% if chrony_server | default([]) | length == 0 %} {% if chrony_server | default([]) | length == 0 %}
pool {{ chrony_pool }} pool {{ chrony_pool }}
{% endif %} {% endif %}

View File

@ -0,0 +1,4 @@
#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
# Command-line options for chronyd
OPTIONS="-F 2 -u chrony"