fix: deploy sysconfig file to ensure chrony user is used
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2cf26665e0
commit
013988d5bb
@ -9,6 +9,17 @@
|
||||
template:
|
||||
src: etc/chrony.conf.j2
|
||||
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
|
||||
notify: __chrony_restart
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
#jinja2: lstrip_blocks: True
|
||||
{{ ansible_managed | comment }}
|
||||
{% if chrony_server | default([]) | length == 0 %}
|
||||
pool {{ chrony_pool }}
|
||||
{% endif %}
|
||||
|
4
templates/etc/sysconfig/chronyd.j2
Normal file
4
templates/etc/sysconfig/chronyd.j2
Normal file
@ -0,0 +1,4 @@
|
||||
#jinja2: lstrip_blocks: True
|
||||
{{ ansible_managed | comment }}
|
||||
# Command-line options for chronyd
|
||||
OPTIONS="-F 2 -u chrony"
|
Loading…
Reference in New Issue
Block a user