Skip to content
Snippets Groups Projects
Commit 0c611fb7 authored by Chris Croome's avatar Chris Croome
Browse files

Minimal defaults

parent a33a8183
No related branches found
No related tags found
No related merge requests found
Pipeline #24410 passed
......@@ -5,17 +5,9 @@ systemd_units:
- name: systemd-timesyncd
files:
- path: /etc/systemd/timesyncd.conf
# comment: |
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
# See timesyncd.conf(5) for details.
conf:
Time:
NTP: 1.pool.ntp.org 0.pool.ntp.org 3.pool.ntp.org 2.pool.ntp.org
state: edited
pkgs:
- systemd-timesyncd
state: present
unit_state: started
...
......@@ -22,6 +22,7 @@
loop: "{{ systemd_section.value | dict2items }}"
loop_control:
loop_var: systemd_variable_pair
notify: Reload systemd
- name: Vim modelines comment present at the end of the file
ansible.builtin.lineinfile:
......
......@@ -90,6 +90,7 @@
when:
- systemd_file_state.stat.exists | bool
- systemd_file.state is defined
- systemd_file.state == "edited"
- name: Systemd unit file templated
......@@ -115,6 +116,7 @@
when: >-
( not systemd_file_state.stat.exists | bool ) or
( systemd_file.state is not defined ) or
( systemd_file.state == "templated" )
- name: Include flush handlers task
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment